function makeArray() {
for (i = 0; i<makeArray.arguments.length; i++)
this[i + 1] = makeArray.arguments[i];
}
var months = new makeArray('January','February','March','April','May',
'June','July','August','September','October','November','December');
var date = new Date();
var day = date.getDate();
var month = date.getMonth() + 1;
var yy = date.getYear();
var year = (yy < 1000) ? yy + 1900 : yy;
document.write(months[month]+ " " +day + ", " + year);


function removeHtmlTag(strx,chop){ 
    if(strx.indexOf("<")!=-1)
    {
        var s = strx.split("<"); 
        for(var i=0;i<s.length;i++){ 
            if(s[i].indexOf(">")!=-1){ 
                s[i] = s[i].substring(s[i].indexOf(">")+1,s[i].length); 
            } 
        } 
        strx =  s.join(""); 
    }
    chop = (chop < strx.length-1) ? chop : strx.length-2; 
    while(strx.charAt(chop-1)!=' ' && strx.indexOf(' ',chop)!=-1) chop++; 
    strx = strx.substring(0,chop-1); 
    return strx+'...'; 
}

function createSummaryAndThumb(pID){
    var div = document.getElementById(pID);
    var imgtag = "";
    var img = div.getElementsByTagName("img");
    var summ = summary_noimg;
    if(img.length>=1) {    
        imgtag = '<span style="float:right;" class="px3-7lolblogger"><img class="px99" src="'+img[0].src+'" width="'+img_thumb_width+'px" height="'+img_thumb_height+'px"/></span>';
        summ = summary_img;
    }

    var summary = imgtag + '<div class="px4-7lolblogger">' + removeHtmlTag(div.innerHTML,summ) + '</div>';
    div.innerHTML = summary;
};

jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,f,a,h,g){return jQuery.easing[jQuery.easing.def](e,f,a,h,g)},easeInQuad:function(e,f,a,h,g){return h*(f/=g)*f+a},easeOutQuad:function(e,f,a,h,g){return -h*(f/=g)*(f-2)+a},easeInOutQuad:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f+a}return -h/2*((--f)*(f-2)-1)+a},easeInCubic:function(e,f,a,h,g){return h*(f/=g)*f*f+a},easeOutCubic:function(e,f,a,h,g){return h*((f=f/g-1)*f*f+1)+a},easeInOutCubic:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f+a}return h/2*((f-=2)*f*f+2)+a},easeInQuart:function(e,f,a,h,g){return h*(f/=g)*f*f*f+a},easeOutQuart:function(e,f,a,h,g){return -h*((f=f/g-1)*f*f*f-1)+a},easeInOutQuart:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f+a}return -h/2*((f-=2)*f*f*f-2)+a},easeInQuint:function(e,f,a,h,g){return h*(f/=g)*f*f*f*f+a},easeOutQuint:function(e,f,a,h,g){return h*((f=f/g-1)*f*f*f*f+1)+a},easeInOutQuint:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f*f+a}return h/2*((f-=2)*f*f*f*f+2)+a},easeInSine:function(e,f,a,h,g){return -h*Math.cos(f/g*(Math.PI/2))+h+a},easeOutSine:function(e,f,a,h,g){return h*Math.sin(f/g*(Math.PI/2))+a},easeInOutSine:function(e,f,a,h,g){return -h/2*(Math.cos(Math.PI*f/g)-1)+a},easeInExpo:function(e,f,a,h,g){return(f==0)?a:h*Math.pow(2,10*(f/g-1))+a},easeOutExpo:function(e,f,a,h,g){return(f==g)?a+h:h*(-Math.pow(2,-10*f/g)+1)+a},easeInOutExpo:function(e,f,a,h,g){if(f==0){return a}if(f==g){return a+h}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a}return h/2*(-Math.pow(2,-10*--f)+2)+a},easeInCirc:function(e,f,a,h,g){return -h*(Math.sqrt(1-(f/=g)*f)-1)+a},easeOutCirc:function(e,f,a,h,g){return h*Math.sqrt(1-(f=f/g-1)*f)+a},easeInOutCirc:function(e,f,a,h,g){if((f/=g/2)<1){return -h/2*(Math.sqrt(1-f*f)-1)+a}return h/2*(Math.sqrt(1-(f-=2)*f)+1)+a},easeInElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return -(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e},easeOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return g*Math.pow(2,-10*h)*Math.sin((h*k-i)*(2*Math.PI)/j)+l+e},easeInOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k/2)==2){return e+l}if(!j){j=k*(0.3*1.5)}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}if(h<1){return -0.5*(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e}return g*Math.pow(2,-10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j)*0.5+l+e},easeInBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*(f/=h)*f*((g+1)*f-g)+a},easeOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*((f=f/h-1)*f*((g+1)*f+g)+1)+a},easeInOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}if((f/=h/2)<1){return i/2*(f*f*(((g*=(1.525))+1)*f-g))+a}return i/2*((f-=2)*f*(((g*=(1.525))+1)*f+g)+2)+a},easeInBounce:function(e,f,a,h,g){return h-jQuery.easing.easeOutBounce(e,g-f,0,h,g)+a},easeOutBounce:function(e,f,a,h,g){if((f/=g)<(1/2.75)){return h*(7.5625*f*f)+a}else{if(f<(2/2.75)){return h*(7.5625*(f-=(1.5/2.75))*f+0.75)+a}else{if(f<(2.5/2.75)){return h*(7.5625*(f-=(2.25/2.75))*f+0.9375)+a}else{return h*(7.5625*(f-=(2.625/2.75))*f+0.984375)+a}}}},easeInOutBounce:function(e,f,a,h,g){if(f<g/2){return jQuery.easing.easeInBounce(e,f*2,0,h,g)*0.5+a}return jQuery.easing.easeOutBounce(e,f*2-g,0,h,g)*0.5+h*0.5+a}});


//JS Cookie  
function createCookie(c,d,e){if(e){var b=new Date();b.setTime(b.getTime()+(e*24*60*60*1000));var a="; expires="+b.toGMTString()}else{var a=""}document.cookie=c+"="+d+a+"; path=/"}function readCookie(b){var e=b+"=";var a=document.cookie.split(";");for(var d=0;d<a.length;d++){var f=a[d];while(f.charAt(0)==" "){f=f.substring(1,f.length)}if(f.indexOf(e)==0){return f.substring(e.length,f.length)}}return null}function eraseCookie(a){createCookie(a,"",-1)};

// jQuery Skitter Slideshow ver. 4.2.1 by Thiago Silva Ferreira - http://thiagosf.net / Ex: http://thiagosf.net/projects/jquery/skitter/
(function ($) {
	var number_skitter = 0,
	skitters = [];
	$.fn.skitter = function (options) {
		return this.each(function () {
			if ($(this).data('skitter_number') == undefined) {
				$(this).data('skitter_number', number_skitter);
				skitters.push(new $sk(this, options, number_skitter)); ++number_skitter
			}
		})
	};
	var defaults = {
		velocity: 1,
		interval: 2500,
		animation: '',
		numbers: true,
		navigation: true,
		label: true,
		easing_default: '',
		box_skitter: null,
		time_interval: null,
		images_links: null,
		image_atual: null,
		link_atual: null,
		label_atual: null,
		target_atual: '_self',
		width_skitter: null,
		height_skitter: null,
		image_i: 1,
		is_animating: false,
		is_hover_box_skitter: false,
		random_ia: null,
		show_randomly: false,
		thumbs: false,
		animateNumberOut: false,
		animateNumberOver: false,
		animateNumberActive: false,
		hideTools: false,
		fullscreen: false,
		xml: false,
		dots: false,
		width_label: null,
		opacity_elements: 0.75,
		interval_in_elements: 200,
		interval_out_elements: 300,
		onLoad: null,
		imageSwitched: null,
		max_number_height: 20,
		numbers_align: 'left',
		preview: false,
		focus: false,
		foucs_active: false,
		focus_position: 'center',
		controls: false,
		controls_position: 'center',
		progressbar: false,
		progressbar_css: {},
		is_paused: false,
		is_blur: false,
		is_paused_time: false,
		timeStart: 0,
		elapsedTime: 0,
		stop_over: true,
		enable_navigation_keys: false,
		with_animations: [],
		mouseOverButton: null,
		mouseOutButton: null,
		auto_play: true,
		labelAnimation: 'slideUp',
		theme: null,
		structure: '<a href="#" class="prev_button">prev</a>' + '<a href="#" class="next_button">next</a>' + '<span class="info_slide"></span>' + '<div class="container_skitter">' + '<div class="image">' + '<a href=""><img class="image_main" /></a>' + '<div class="label_skitter"></div>' + '</div>' + '</div>'
	};
	$.skitter = function (obj, options, number) {
		this.box_skitter = $(obj);
		this.timer = null;
		this.settings = $.extend({},
		defaults, options || {});
		this.number_skitter = number;
		this.setup()
	};
	var $sk = $.skitter;
	$sk.fn = $sk.prototype = {};
	$sk.fn.extend = $.extend;
	$sk.fn.extend({
		setup: function () {
			var self = this;
			if (this.settings.fullscreen) {
				var width = $(window).width();
				var height = $(window).height();
				this.box_skitter.width(width).height(height);
				this.box_skitter.css({
					'position': 'absolute',
					'top': 0,
					'left': 0,
					'z-index': 1000
				});
				this.settings.stop_over = false;
				$('body').css({
					'overflown': 'hidden'
				})
			}
			this.settings.width_skitter = parseFloat(this.box_skitter.css('width'));
			this.settings.height_skitter = parseFloat(this.box_skitter.css('height'));
			if (!this.settings.width_skitter || !this.settings.height_skitter) {
				console.warn('Width or height size is null! - Skitter Slideshow');
				return false
			}
			if (this.settings.theme) {
				this.box_skitter.addClass('skitter-' + this.settings.theme)
			}
			this.box_skitter.append(this.settings.structure);
			this.settings.easing_default = this.getEasing(this.settings.easing);
			if (this.settings.velocity >= 2) this.settings.velocity = 1.3;
			if (this.settings.velocity <= 0) this.settings.velocity = 1;
			this.box_skitter.find('.info_slide').hide();
			this.box_skitter.find('.label_skitter').hide();
			this.box_skitter.find('.prev_button').hide();
			this.box_skitter.find('.next_button').hide();
			this.box_skitter.find('.container_skitter').width(this.settings.width_skitter);
			this.box_skitter.find('.container_skitter').height(this.settings.height_skitter);
			var width_label = this.settings.width_label ? this.settings.width_label: this.settings.width_skitter;
			this.box_skitter.find('.label_skitter').width(width_label);
			var initial_select_class = ' image_number_select',
			u = 0;
			this.settings.images_links = new Array();
			var addImageLink = function (link, src, animation_type, label, target) {
				self.settings.images_links.push([src, link, animation_type, label, target]);
				if (self.settings.thumbs) {
					var dimension_thumb = '';
					if (self.settings.width_skitter > self.settings.height_skitter) {
						dimension_thumb = 'height="100"'
					} else {
						dimension_thumb = 'width="100"'
					}
					self.box_skitter.find('.info_slide').append('<span class="image_number' + initial_select_class + '" rel="' + (u - 1) + '" id="image_n_' + u + '_' + self.number_skitter + '">' + '<img src="' + src + '" ' + dimension_thumb + ' />' + '</span> ')
				} else {
					self.box_skitter.find('.info_slide').append('<span class="image_number' + initial_select_class + '" rel="' + (u - 1) + '" id="image_n_' + u + '_' + self.number_skitter + '">' + u + '</span> ')
				}
				initial_select_class = ''
			};
			if (this.settings.xml) {
				$.ajax({
					type: 'GET',
					url: this.settings.xml,
					async: false,
					dataType: 'xml',
					success: function (xml) {
						var ul = $('<ul></ul>');
						$(xml).find('skitter slide').each(function () {++u;
							var link = ($(this).find('link').text()) ? $(this).find('link').text() : '#';
							var src = $(this).find('image').text();
							var animation_type = $(this).find('image').attr('type');
							var label = $(this).find('label').text();
							var target = ($(this).find('target').text()) ? $(this).find('target').text() : '_self';
							addImageLink(link, src, animation_type, label, target)
						})
					}
				})
			} else if (this.settings.json) {} else {
				this.box_skitter.find('ul li').each(function () {++u;
					var link = ($(this).find('a').length) ? $(this).find('a').attr('href') : '#';
					var src = $(this).find('img').attr('src');
					var animation_type = $(this).find('img').attr('class');
					var label = $(this).find('.label_text').html();
					var target = ($(this).find('a').length && $(this).find('a').attr('target')) ? $(this).find('a').attr('target') : '_self';
					addImageLink(link, src, animation_type, label, target)
				})
			}
			if (self.settings.thumbs && !self.settings.fullscreen) {
				self.settings.animateNumberOut = {
					opacity: 0.3
				};
				self.settings.animateNumberOver = {
					opacity: 0.5
				};
				self.settings.animateNumberActive = {
					opacity: 1
				};
				self.box_skitter.find('.info_slide').addClass('info_slide_thumb');
				var width_info_slide = (u + 1) * self.box_skitter.find('.info_slide_thumb .image_number').width();
				self.box_skitter.find('.info_slide_thumb').width(width_info_slide);
				self.box_skitter.css({
					height: self.box_skitter.height() + self.box_skitter.find('.info_slide').height()
				});
				self.box_skitter.append('<div class="container_thumbs"></div>');
				var copy_info_slide = self.box_skitter.find('.info_slide').clone();
				self.box_skitter.find('.info_slide').remove();
				self.box_skitter.find('.container_thumbs').width(self.settings.width_skitter).append(copy_info_slide);
				var width_image = 0,
				width_skitter = this.settings.width_skitter,
				height_skitter = this.settings.height_skitter,
				w_info_slide_thumb = 0,
				info_slide_thumb = self.box_skitter.find('.info_slide_thumb'),
				x_value = 0,
				y_value = self.box_skitter.offset().top;
				info_slide_thumb.find('.image_number').each(function () {
					width_image += $(this).outerWidth()
				});
				info_slide_thumb.width(width_image + 'px');
				w_info_slide_thumb = info_slide_thumb.width();
				width_value = this.settings.width_skitter;
				width_value = width_skitter - 100;
				if (width_info_slide > self.settings.width_skitter) {
					self.box_skitter.mousemove(function (e) {
						x_value = self.box_skitter.offset().left + 90;
						var x = e.pageX,
						y = e.pageY,
						new_x = 0;
						x = x - x_value;
						y = y - y_value;
						novo_width = w_info_slide_thumb - width_value;
						new_x = -((novo_width * x) / width_value);
						if (new_x > 0) new_x = 0;
						if (new_x < -(w_info_slide_thumb - width_skitter)) new_x = -(w_info_slide_thumb - width_skitter);
						if (y > height_skitter) {
							info_slide_thumb.css({
								left: new_x
							})
						}
					})
				}
				self.box_skitter.find('.scroll_thumbs').css({
					'left': 10
				});
				if (width_info_slide < self.settings.width_skitter) {
					self.box_skitter.find('.info_slide').width('auto');
					self.box_skitter.find('.box_scroll_thumbs').hide();
					var class_info = '.info_slide';
					switch (self.settings.numbers_align) {
					case 'center':
						var _vleft = (self.settings.width_skitter - self.box_skitter.find(class_info).width()) / 2;
						self.box_skitter.find(class_info).css({
							'left': _vleft
						});
						break;
					case 'right':
						self.box_skitter.find(class_info).css({
							'left':
							'auto',
							'right': '-5px'
						});
						break;
					case 'left':
						self.box_skitter.find(class_info).css({
							'left':
							'0px'
						});
						break
					}
				}
			} else {
				var class_info = '.info_slide';
				if (self.settings.dots) {
					self.box_skitter.find('.info_slide').addClass('info_slide_dots').removeClass('info_slide');
					class_info = '.info_slide_dots'
				}
				switch (self.settings.numbers_align) {
				case 'center':
					var _vleft = (self.settings.width_skitter - self.box_skitter.find(class_info).width()) / 2;
					self.box_skitter.find(class_info).css({
						'left': _vleft
					});
					break;
				case 'right':
					self.box_skitter.find(class_info).css({
						'left':
						'auto',
						'right': '15px'
					});
					break;
				case 'left':
					self.box_skitter.find(class_info).css({
						'left':
						'15px'
					});
					break
				}
				if (!self.settings.dots) {
					if (self.box_skitter.find('.info_slide').height() > 20) {
						self.box_skitter.find('.info_slide').hide()
					}
				}
			}
			this.box_skitter.find('ul').hide();
			if (this.settings.show_randomly) this.settings.images_links.sort(function (a, b) {
				return Math.random() - 0.5
			});
			this.settings.image_atual = this.settings.images_links[0][0];
			this.settings.link_atual = this.settings.images_links[0][1];
			this.settings.label_atual = this.settings.images_links[0][3];
			this.settings.target_atual = this.settings.images_links[0][4];
			if (this.settings.images_links.length > 1) {
				this.box_skitter.find('.prev_button').click(function () {
					if (self.settings.is_animating == false) {
						self.settings.image_i -= 2;
						if (self.settings.image_i == -2) {
							self.settings.image_i = self.settings.images_links.length - 2
						} else if (self.settings.image_i == -1) {
							self.settings.image_i = self.settings.images_links.length - 1
						}
						self.jumpToImage(self.settings.image_i)
					}
					return false
				});
				this.box_skitter.find('.next_button').click(function () {
					self.jumpToImage(self.settings.image_i);
					return false
				});
				self.box_skitter.find('.next_button, .prev_button').bind('mouseover', self.settings.mouseOverButton);
				self.box_skitter.find('.next_button, .prev_button').bind('mouseleave', self.settings.mouseOutButton);
				this.box_skitter.find('.image_number').hover(function () {
					if ($(this).attr('class') != 'image_number image_number_select') {
						if (self.settings.animateNumberOver) {
							$(this).stop().animate(self.settings.animateNumberOver, 300)
						}
					}
				},
				function () {
					if ($(this).attr('class') != 'image_number image_number_select') {
						if (self.settings.animateNumberOut) {
							$(this).stop().animate(self.settings.animateNumberOut, 500)
						}
					}
				});
				this.box_skitter.find('.image_number').click(function () {
					if ($(this).attr('class') != 'image_number image_number_select') {
						var imageNumber = parseInt($(this).attr('rel'));
						self.jumpToImage(imageNumber)
					}
					return false
				});
				if (self.settings.animateNumberOut) {
					this.box_skitter.find('.image_number').css(self.settings.animateNumberOut)
				}
				if (self.settings.animateNumberActive) {
					this.box_skitter.find('.image_number:eq(0)').css(self.settings.animateNumberActive)
				}
				if (self.settings.preview && self.settings.dots) {
					var preview = $('<div class="preview_slide"><ul></ul></div>');
					for (var i = 0; i < this.settings.images_links.length; i++) {
						var li = $('<li></li>');
						var img = $('<img />');
						img.attr('src', this.settings.images_links[i][0]);
						li.append(img);
						preview.find('ul').append(li)
					}
					var width_preview_ul = parseInt(this.settings.images_links.length * 100);
					preview.find('ul').width(width_preview_ul);
					$(class_info).append(preview);
					self.box_skitter.find(class_info).find('.image_number').mouseenter(function () {
						var _left_info = parseFloat(self.box_skitter.find(class_info).offset().left);
						var _left_image = parseFloat($(this).offset().left);
						var _left_preview = (_left_image - _left_info) - 43;
						var rel = parseInt($(this).attr('rel'));
						var image_current_preview = self.box_skitter.find('.preview_slide_current img').attr('src');
						var _left_ul = -(rel * 100);
						self.box_skitter.find('.preview_slide').find('ul').animate({
							left: _left_ul
						},
						{
							duration: 200,
							queue: false,
							easing: 'easeOutSine'
						});
						self.box_skitter.find('.preview_slide').fadeTo(1, 1).animate({
							left: _left_preview
						},
						{
							duration: 200,
							queue: false
						})
					});
					self.box_skitter.find(class_info).mouseleave(function () {
						$('.preview_slide').animate({
							opacity: 'hide'
						},
						{
							duration: 200,
							queue: false
						})
					})
				}
			}
			if (self.settings.focus) {
				self.focusSkitter()
			}
			if (self.settings.controls) {
				self.setControls()
			}
			if (self.settings.progressbar && self.settings.auto_play) {
				self.addProgressBar()
			}
			if (self.settings.hideTools) {
				self.hideTools()
			}
			if (self.settings.enable_navigation_keys) {
				self.enableNavigationKeys()
			}
			this.loadImages()
		},
		loadImages: function () {
			var self = this;
			var loading = $('<div class="loading">Loading</div>');
			this.box_skitter.append(loading);
			var total = this.settings.images_links.length;
			var u = 0;
			$.each(this.settings.images_links, function (i) {
				var self_il = this;
				var loading = $('<span class="image_loading"></span>');
				loading.css({
					position: 'absolute',
					top: '-9999em'
				});
				self.box_skitter.append(loading);
				var img = new Image();
				$(img).load(function () {++u;
					if (u == total) {
						self.box_skitter.find('.loading').remove();
						self.box_skitter.find('.image_loading').remove();
						self.start()
					}
				}).error(function () {
					self.box_skitter.find('.loading, .image_loading, .image_number, .next_button, .prev_button').remove();
					self.box_skitter.html('<p style="color:white;background:black;">Error loading images. One or more images were not found.</p>')
				}).attr('src', self_il[0])
			})
		},
		start: function () {
			var self = this;
			var init_pause = false;
			if (this.settings.numbers || this.settings.thumbs) this.box_skitter.find('.info_slide').fadeIn(500);
			if (this.settings.dots) this.box_skitter.find('.info_slide_dots').fadeIn(500);
			if (this.settings.label) this.box_skitter.find('.label_skitter').show();
			if (this.settings.navigation) {
				this.box_skitter.find('.prev_button').fadeIn(500);
				this.box_skitter.find('.next_button').fadeIn(500)
			}
			if (self.settings.auto_play) {
				self.startTime()
			}
			self.windowFocusOut();
			self.setLinkAtual();
			self.box_skitter.find('.image a img').attr({
				'src': self.settings.image_atual
			});
			img_link = self.box_skitter.find('.image a');
			img_link = self.resizeImage(img_link);
			img_link.find('img').fadeIn(1500);
			self.setValueBoxText();
			self.showBoxText();
			if (self.settings.auto_play) {
				self.stopOnMouseOver()
			}
			var mouseOverInit = function () {
				if (self.settings.stop_over) {
					init_pause = true;
					self.settings.is_hover_box_skitter = true;
					self.clearTimer(true);
					self.pauseProgressBar()
				}
			};
			self.box_skitter.mouseover(mouseOverInit);
			self.box_skitter.find('.next_button').mouseover(mouseOverInit);
			if (self.settings.images_links.length > 1 && !init_pause) {
				if (self.settings.auto_play) {
					self.timer = setTimeout(function () {
						self.nextImage()
					},
					self.settings.interval)
				}
			} else {
				self.box_skitter.find('.loading, .image_loading, .image_number, .next_button, .prev_button').remove()
			}
			if ($.isFunction(self.settings.onLoad)) self.settings.onLoad(self)
		},
		jumpToImage: function (imageNumber) {
			if (this.settings.is_animating == false) {
				this.settings.elapsedTime = 0;
				this.box_skitter.find('.box_clone').stop();
				this.clearTimer(true);
				this.settings.image_i = Math.floor(imageNumber);
				this.box_skitter.find('.image a').attr({
					'href': this.settings.link_atual
				});
				this.box_skitter.find('.image_main').attr({
					'src': this.settings.image_atual
				});
				this.box_skitter.find('.box_clone').remove();
				this.nextImage()
			}
		},
		nextImage: function () {
			var self = this;
			animations_functions = ['cube', 'cubeRandom', 'block', 'cubeStop', 'cubeStopRandom', 'cubeHide', 'cubeSize', 'horizontal', 'showBars', 'showBarsRandom', 'tube', 'fade', 'fadeFour', 'paralell', 'blind', 'blindHeight', 'blindWidth', 'directionTop', 'directionBottom', 'directionRight', 'directionLeft', 'cubeSpread', 'glassCube', 'glassBlock', 'circles', 'circlesInside', 'circlesRotate', 'cubeShow', 'upBars', 'downBars', 'hideBars', 'swapBars', 'swapBarsBack', 'swapBlocks', 'cut'];
			if (self.settings.progressbar) self.hideProgressBar();
			animation_type = (this.settings.animation == '' && this.settings.images_links[this.settings.image_i][2]) ? this.settings.images_links[this.settings.image_i][2] : (this.settings.animation == '' ? 'default': this.settings.animation);
			if (animation_type == 'randomSmart') {
				if (!this.settings.random_ia) {
					animations_functions.sort(function () {
						return 0.5 - Math.random()
					});
					this.settings.random_ia = animations_functions
				}
				animation_type = this.settings.random_ia[this.settings.image_i]
			} else if (animation_type == 'random') {
				var random_id = parseInt(Math.random() * animations_functions.length);
				animation_type = animations_functions[random_id]
			} else if (self.settings.with_animations.length > 0) {
				var total_with_animations = self.settings.with_animations.length;
				if (this.settings._i_animation == undefined) {
					this.settings._i_animation = 0
				}
				animation_type = self.settings.with_animations[this.settings._i_animation]; ++this.settings._i_animation;
				if (this.settings._i_animation >= total_with_animations) this.settings._i_animation = 0
			}
			switch (animation_type) {
			case 'cube':
				this.animationCube();
				break;
			case 'cubeRandom':
				this.animationCube({
					random:
					true
				});
				break;
			case 'block':
				this.animationBlock();
				break;
			case 'cubeStop':
				this.animationCubeStop();
				break;
			case 'cubeStopRandom':
				this.animationCubeStop({
					random:
					true
				});
				break;
			case 'cubeHide':
				this.animationCubeHide();
				break;
			case 'cubeSize':
				this.animationCubeSize();
				break;
			case 'horizontal':
				this.animationHorizontal();
				break;
			case 'showBars':
				this.animationShowBars();
				break;
			case 'showBarsRandom':
				this.animationShowBars({
					random:
					true
				});
				break;
			case 'tube':
				this.animationTube();
				break;
			case 'fade':
				this.animationFade();
				break;
			case 'fadeFour':
				this.animationFadeFour();
				break;
			case 'paralell':
				this.animationParalell();
				break;
			case 'blind':
				this.animationBlind();
				break;
			case 'blindHeight':
				this.animationBlindDimension({
					height:
					true
				});
				break;
			case 'blindWidth':
				this.animationBlindDimension({
					height:
					false,
					time_animate: 400,
					delay: 50
				});
				break;
			case 'directionTop':
				this.animationDirection({
					direction:
					'top'
				});
				break;
			case 'directionBottom':
				this.animationDirection({
					direction:
					'bottom'
				});
				break;
			case 'directionRight':
				this.animationDirection({
					direction:
					'right',
					total: 5
				});
				break;
			case 'directionLeft':
				this.animationDirection({
					direction:
					'left',
					total: 5
				});
				break;
			case 'cubeSpread':
				this.animationCubeSpread();
				break;
			case 'cubeJelly':
				this.animationCubeJelly();
				break;
			case 'glassCube':
				this.animationGlassCube();
				break;
			case 'glassBlock':
				this.animationGlassBlock();
				break;
			case 'circles':
				this.animationCircles();
				break;
			case 'circlesInside':
				this.animationCirclesInside();
				break;
			case 'circlesRotate':
				this.animationCirclesRotate();
				break;
			case 'cubeShow':
				this.animationCubeShow();
				break;
			case 'upBars':
				this.animationDirectionBars({
					direction:
					'top'
				});
				break;
			case 'downBars':
				this.animationDirectionBars({
					direction:
					'bottom'
				});
				break;
			case 'hideBars':
				this.animationHideBars();
				break;
			case 'swapBars':
				this.animationSwapBars();
				break;
			case 'swapBarsBack':
				this.animationSwapBars({
					easing:
					'easeOutBack'
				});
				break;
			case 'swapBlocks':
				this.animationSwapBlocks();
				break;
			case 'cut':
				this.animationCut();
				break;
			default:
				this.animationTube();
				break
			}
		},
		animationCube: function (options) {
			var self = this;
			var options = $.extend({},
			{
				random: false
			},
			options || {});
			this.settings.is_animating = true;
			var easing = (this.settings.easing_default == '') ? 'easeOutExpo': this.settings.easing_default;
			var time_animate = 700 / this.settings.velocity;
			this.setActualLevel();
			var division_w = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 8));
			var division_h = Math.ceil(this.settings.height_skitter / (this.settings.height_skitter / 3));
			var total = division_w * division_h;
			var width_box = Math.ceil(this.settings.width_skitter / division_w);
			var height_box = Math.ceil(this.settings.height_skitter / division_h);
			var init_top = this.settings.height_skitter + 200;
			var init_left = this.settings.height_skitter + 200;
			var col_t = 0;
			var col = 0;
			for (i = 0; i < total; i++) {
				init_top = (i % 2 == 0) ? init_top: -init_top;
				init_left = (i % 2 == 0) ? init_left: -init_left;
				var _vtop = init_top + (height_box * col_t) + (col_t * 150);
				var _vleft = -self.settings.width_skitter;
				var _vtop_image = -(height_box * col_t);
				var _vleft_image = -(width_box * col);
				var _btop = (height_box * col_t);
				var _bleft = (width_box * col);
				var box_clone = this.getBoxClone();
				box_clone.hide();
				var delay_time = 50 * (i);
				if (options.random) {
					delay_time = 40 * (col);
					box_clone.css({
						left: _vleft + 'px',
						top: _vtop + 'px',
						width: width_box,
						height: height_box
					})
				} else {
					time_animate = 500;
					box_clone.css({
						left: (this.settings.width_skitter) + (width_box * i),
						top: this.settings.height_skitter + (height_box * i),
						width: width_box,
						height: height_box
					})
				}
				this.addBoxClone(box_clone);
				var callback = (i == (total - 1)) ?
				function () {
					self.finishAnimation()
				}: '';
				box_clone.show().delay(delay_time).animate({
					top: _btop + 'px',
					left: _bleft + 'px'
				},
				time_animate, easing, callback);
				if (options.random) {
					box_clone.find('img').css({
						left: _vleft_image + 100,
						top: _vtop_image + 50
					});
					box_clone.find('img').delay(delay_time + (time_animate / 2)).animate({
						left: _vleft_image,
						top: _vtop_image
					},
					1000, 'easeOutBack')
				} else {
					box_clone.find('img').css({
						left: _vleft_image,
						top: _vtop_image
					});
					box_clone.find('img').delay(delay_time + (time_animate / 2)).fadeTo(100, 0.5).fadeTo(300, 1)
				}
				col_t++;
				if (col_t == division_h) {
					col_t = 0;
					col++
				}
			}
		},
		animationBlock: function (options) {
			var self = this;
			this.settings.is_animating = true;
			var easing = (this.settings.easing_default == '') ? 'easeOutQuad': this.settings.easing_default;
			var time_animate = 500 / this.settings.velocity;
			this.setActualLevel();
			var total = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 15));
			var width_box = Math.ceil(this.settings.width_skitter / total);
			var height_box = (this.settings.height_skitter);
			for (i = 0; i < total; i++) {
				var _bleft = (width_box * (i));
				var _btop = 0;
				var box_clone = this.getBoxClone();
				box_clone.css({
					left: this.settings.width_skitter + 100,
					top: 0,
					width: width_box,
					height: height_box
				});
				box_clone.find('img').css({
					left: -(width_box * i)
				});
				this.addBoxClone(box_clone);
				var delay_time = 80 * (i);
				var callback = (i == (total - 1)) ?
				function () {
					self.finishAnimation()
				}: '';
				box_clone.show().delay(delay_time).animate({
					top: _btop,
					left: _bleft
				},
				time_animate, easing);
				box_clone.find('img').hide().delay(delay_time + 100).animate({
					opacity: 'show'
				},
				time_animate + 300, easing, callback)
			}
		},
		animationCubeStop: function (options) {
			var self = this;
			var options = $.extend({},
			{
				random: false
			},
			options || {});
			this.settings.is_animating = true;
			var easing = (this.settings.easing_default == '') ? 'easeInQuad': this.settings.easing_default;
			var time_animate = 300 / this.settings.velocity;
			var image_old = this.box_skitter.find('.image_main').attr('src');
			this.setActualLevel();
			this.setLinkAtual();
			this.box_skitter.find('.image_main').attr({
				'src': this.settings.image_atual
			});
			var division_w = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 8));
			var division_h = Math.ceil(this.settings.height_skitter / (this.settings.width_skitter / 8));
			var total = division_w * division_h;
			var width_box = Math.ceil(this.settings.width_skitter / division_w);
			var height_box = Math.ceil(this.settings.height_skitter / division_h);
			var init_top = 0;
			var init_left = 0;
			var col_t = 0;
			var col = 0;
			var _ftop = this.settings.width_skitter / 16;
			for (i = 0; i < total; i++) {
				init_top = (i % 2 == 0) ? init_top: -init_top;
				init_left = (i % 2 == 0) ? init_left: -init_left;
				var _vtop = init_top + (height_box * col_t);
				var _vleft = (init_left + (width_box * col));
				var _vtop_image = -(height_box * col_t);
				var _vleft_image = -(width_box * col);
				var _btop = _vtop - _ftop;
				var _bleft = _vleft - _ftop;
				var box_clone = this.getBoxCloneImgOld(image_old);
				box_clone.css({
					left: _vleft + 'px',
					top: _vtop + 'px',
					width: width_box,
					height: height_box
				});
				box_clone.find('img').css({
					left: _vleft_image,
					top: _vtop_image
				});
				this.addBoxClone(box_clone);
				box_clone.show();
				var delay_time = 50 * i;
				if (options.random) {
					time_animate = (400 * (self.getRandom(2) + 1)) / this.settings.velocity;
					_btop = _vtop;
					_bleft = _vleft;
					delay_time = Math.ceil(30 * self.getRandom(30))
				}
				if (options.random && i == (total - 1)) {
					time_animate = 400 * 3;
					delay_time = 30 * 30
				}
				var callback = (i == (total - 1)) ?
				function () {
					self.finishAnimation()
				}: '';
				box_clone.delay(delay_time).animate({
					opacity: 'hide',
					top: _btop + 'px',
					left: _bleft + 'px'
				},
				time_animate, easing, callback);
				col_t++;
				if (col_t == division_h) {
					col_t = 0;
					col++
				}
			}
		},
		animationCubeHide: function (options) {
			var self = this;
			this.settings.is_animating = true;
			var easing = (this.settings.easing_default == '') ? 'easeOutQuad': this.settings.easing_default;
			var time_animate = 500 / this.settings.velocity;
			var image_old = this.box_skitter.find('.image_main').attr('src');
			this.setActualLevel();
			this.setLinkAtual();
			this.box_skitter.find('.image_main').attr({
				'src': this.settings.image_atual
			});
			var division_w = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 8));
			var division_h = Math.ceil(this.settings.height_skitter / (this.settings.height_skitter / 3));
			var total = division_w * division_h;
			var width_box = Math.ceil(this.settings.width_skitter / division_w);
			var height_box = Math.ceil(this.settings.height_skitter / division_h);
			var init_top = 0;
			var init_left = 0;
			var col_t = 0;
			var col = 0;
			for (i = 0; i < total; i++) {
				init_top = (i % 2 == 0) ? init_top: -init_top;
				init_left = (i % 2 == 0) ? init_left: -init_left;
				var _vtop = init_top + (height_box * col_t);
				var _vleft = (init_left + (width_box * col));
				var _vtop_image = -(height_box * col_t);
				var _vleft_image = -(width_box * col);
				var _btop = _vtop - 50;
				var _bleft = _vleft - 50;
				var box_clone = this.getBoxCloneImgOld(image_old);
				box_clone.css({
					left: _vleft + 'px',
					top: _vtop + 'px',
					width: width_box,
					height: height_box
				});
				box_clone.find('img').css({
					left: _vleft_image,
					top: _vtop_image
				});
				this.addBoxClone(box_clone);
				box_clone.show();
				var delay_time = 50 * i;
				delay_time = (i == (total - 1)) ? (total * 50) : delay_time;
				var callback = (i == (total - 1)) ?
				function () {
					self.finishAnimation()
				}: '';
				box_clone.delay(delay_time).animate({
					opacity: 'hide'
				},
				time_animate, easing, callback);
				col_t++;
				if (col_t == division_h) {
					col_t = 0;
					col++
				}
			}
		},
		animationCubeJelly: function (options) {
			var self = this;
			this.settings.is_animating = true;
			var easing = (this.settings.easing_default == '') ? 'easeInBack': this.settings.easing_default;
			var time_animate = 300 / this.settings.velocity;
			var image_old = this.box_skitter.find('.image_main').attr('src');
			this.setActualLevel();
			this.setLinkAtual();
			this.box_skitter.find('.image_main').attr({
				'src': this.settings.image_atual
			});
			var division_w = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 8));
			var division_h = Math.ceil(this.settings.height_skitter / (this.settings.height_skitter / 3));
			var total = division_w * division_h;
			var width_box = Math.ceil(this.settings.width_skitter / division_w);
			var height_box = Math.ceil(this.settings.height_skitter / division_h);
			var init_top = 0;
			var init_left = 0;
			var col_t = 0;
			var col = 0;
			var u = -1;
			for (i = 0; i < total; i++) {
				if (col % 2 != 0) {
					if (col_t == 0) {
						u = u + division_h + 1
					}
					u--
				} else {
					if (col > 0 && col_t == 0) {
						u = u + 2
					}
					u++
				}
				init_top = (i % 2 == 0) ? init_top: -init_top;
				init_left = (i % 2 == 0) ? init_left: -init_left;
				var _vtop = init_top + (height_box * col_t);
				var _vleft = (init_left + (width_box * col));
				var _vtop_image = -(height_box * col_t);
				var _vleft_image = -(width_box * col);
				var _btop = _vtop - 50;
				var _bleft = _vleft - 50;
				var box_clone = this.getBoxCloneImgOld(image_old);
				box_clone.css({
					left: _vleft + 'px',
					top: _vtop + 'px',
					width: width_box,
					height: height_box
				});
				box_clone.find('img').css({
					left: _vleft_image,
					top: _vtop_image
				});
				this.addBoxClone(box_clone);
				box_clone.show();
				var delay_time = (50 * i);
				var callback = (i == (total - 1)) ?
				function () {
					self.finishAnimation()
				}: '';
				box_clone.delay(delay_time).animate({
					width: '+=100px',
					height: '+=100px',
					top: '-=20px',
					left: '-=20px',
					opacity: 'hide'
				},
				time_animate, easing, callback);
				col_t++;
				if (col_t == division_h) {
					col_t = 0;
					col++
				}
			}
		},
		animationCubeSize: function (options) {
			var self = this;
			this.settings.is_animating = true;
			var easing = (this.settings.easing_default == '') ? 'easeInOutQuad': this.settings.easing_default;
			var time_animate = 600 / this.settings.velocity;
			var image_old = this.box_skitter.find('.image_main').attr('src');
			this.setActualLevel();
			this.setLinkAtual();
			this.box_skitter.find('.image_main').attr({
				'src': this.settings.image_atual
			});
			var division_w = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 8));
			var division_h = Math.ceil(this.settings.height_skitter / (this.settings.height_skitter / 3));
			var total = division_w * division_h;
			var width_box = Math.ceil(this.settings.width_skitter / division_w);
			var height_box = Math.ceil(this.settings.height_skitter / division_h);
			var init_top = 0;
			var init_left = 0;
			var col_t = 0;
			var col = 0;
			var _ftop = Math.ceil(this.settings.width_skitter / 6);
			for (i = 0; i < total; i++) {
				init_top = (i % 2 == 0) ? init_top: -init_top;
				init_left = (i % 2 == 0) ? init_left: -init_left;
				var _vtop = init_top + (height_box * col_t);
				var _vleft = (init_left + (width_box * col));
				var _vtop_image = -(height_box * col_t);
				var _vleft_image = -(width_box * col);
				var _btop = _vtop - _ftop;
				var _bleft = _vleft - _ftop;
				var box_clone = this.getBoxCloneImgOld(image_old);
				box_clone.css({
					left: _vleft,
					top: _vtop,
					width: width_box,
					height: height_box
				});
				box_clone.find('img').css({
					left: _vleft_image,
					top: _vtop_image
				});
				this.addBoxClone(box_clone);
				box_clone.show();
				var delay_time = 50 * i;
				var callback = (i == (total - 1)) ?
				function () {
					self.finishAnimation()
				}: '';
				box_clone.delay(delay_time).animate({
					opacity: 'hide',
					width: 'hide',
					height: 'hide',
					top: _vtop + (width_box * 1.5),
					left: _vleft + (height_box * 1.5)
				},
				time_animate, easing, callback);
				col_t++;
				if (col_t == division_h) {
					col_t = 0;
					col++
				}
			}
		},
		animationHorizontal: function (options) {
			var self = this;
			this.settings.is_animating = true;
			var easing = (this.settings.easing_default == '') ? 'easeOutExpo': this.settings.easing_default;
			var time_animate = 700 / this.settings.velocity;
			this.setActualLevel();
			var total = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 7));
			var width_box = (this.settings.width_skitter);
			var height_box = Math.ceil(this.settings.height_skitter / total);
			for (i = 0; i < total; i++) {
				var _bleft = (i % 2 == 0 ? '': '') + width_box;
				var _btop = (i * height_box);
				var box_clone = this.getBoxClone();
				box_clone.css({
					left: _bleft + 'px',
					top: _btop + 'px',
					width: width_box,
					height: height_box
				});
				box_clone.find('img').css({
					left: 0,
					top: -_btop
				});
				this.addBoxClone(box_clone);
				var delay_time = 90 * i;
				var callback = (i == (total - 1)) ?
				function () {
					self.finishAnimation()
				}: '';
				box_clone.delay(delay_time).animate({
					opacity: 'show',
					top: _btop,
					left: 0
				},
				time_animate, easing, callback)
			}
		},
		animationShowBars: function (options) {
			var self = this;
			var options = $.extend({},
			{
				random: false
			},
			options || {});
			this.settings.is_animating = true;
			var easing = (this.settings.easing_default == '') ? 'easeOutQuad': this.settings.easing_default;
			var time_animate = 400 / this.settings.velocity;
			this.setActualLevel();
			var total = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 10));
			var width_box = Math.ceil(this.settings.width_skitter / total);
			var height_box = (this.settings.height_skitter);
			for (i = 0; i < total; i++) {
				var _bleft = (width_box * (i));
				var _btop = 0;
				var box_clone = this.getBoxClone();
				box_clone.css({
					left: _bleft,
					top: _btop - 50,
					width: width_box,
					height: height_box
				});
				box_clone.find('img').css({
					left: -(width_box * i),
					top: 0
				});
				this.addBoxClone(box_clone);
				if (options.random) {
					var random = this.getRandom(total);
					var delay_time = 50 * random;
					delay_time = (i == (total - 1)) ? (50 * total) : delay_time
				} else {
					var delay_time = 70 * (i);
					time_animate = time_animate - (i * 2)
				}
				var callback = (i == (total - 1)) ?
				function () {
					self.finishAnimation()
				}: '';
				box_clone.delay(delay_time).animate({
					opacity: 'show',
					top: _btop + 'px',
					left: _bleft + 'px'
				},
				time_animate, easing, callback)
			}
		},
		animationTube: function (options) {
			var self = this;
			this.settings.is_animating = true;
			var easing = (this.settings.easing_default == '') ? 'easeOutElastic': this.settings.easing_default;
			var time_animate = 600 / this.settings.velocity;
			this.setActualLevel();
			var total = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 10));
			var width_box = Math.ceil(this.settings.width_skitter / total);
			var height_box = this.settings.height_skitter;
			for (i = 0; i < total; i++) {
				var _btop = 0;
				var _vtop = height_box;
				var vleft = width_box * i;
				var box_clone = this.getBoxClone();
				box_clone.css({
					left: vleft,
					top: _vtop,
					height: height_box,
					width: width_box
				});
				box_clone.find('img').css({
					left: -(vleft)
				});
				this.addBoxClone(box_clone);
				var random = this.getRandom(total);
				var delay_time = 30 * random;
				var callback = (i == (total - 1)) ?
				function () {
					self.finishAnimation()
				}: '';
				box_clone.show().delay(delay_time).animate({
					top: _btop
				},
				time_animate, easing, callback)
			}
		},
		animationFade: function (options) {
			var self = this;
			this.settings.is_animating = true;
			var easing = (this.settings.easing_default == '') ? 'easeOutQuad': this.settings.easing_default;
			var time_animate = 800 / this.settings.velocity;
			this.setActualLevel();
			var width_box = this.settings.width_skitter;
			var height_box = this.settings.height_skitter;
			var total = 2;
			for (i = 0; i < total; i++) {
				var _vtop = 0;
				var _vleft = 0;
				var box_clone = this.getBoxClone();
				box_clone.css({
					left: _vleft,
					top: _vtop,
					width: width_box,
					height: height_box
				});
				this.addBoxClone(box_clone);
				var callback = (i == (total - 1)) ?
				function () {
					self.finishAnimation()
				}: '';
				box_clone.animate({
					opacity: 'show',
					left: 0,
					top: 0
				},
				time_animate, easing, callback)
			}
		},
		animationFadeFour: function (options) {
			var self = this;
			this.settings.is_animating = true;
			var easing = (this.settings.easing_default == '') ? 'easeOutQuad': this.settings.easing_default;
			var time_animate = 500 / this.settings.velocity;
			this.setActualLevel();
			var width_box = this.settings.width_skitter;
			var height_box = this.settings.height_skitter;
			var total = 4;
			for (i = 0; i < total; i++) {
				if (i == 0) {
					var _vtop = '-100px';
					var _vleft = '-100px'
				} else if (i == 1) {
					var _vtop = '-100px';
					var _vleft = '100px'
				} else if (i == 2) {
					var _vtop = '100px';
					var _vleft = '-100px'
				} else if (i == 3) {
					var _vtop = '100px';
					var _vleft = '100px'
				}
				var box_clone = this.getBoxClone();
				box_clone.css({
					left: _vleft,
					top: _vtop,
					width: width_box,
					height: height_box
				});
				this.addBoxClone(box_clone);
				var callback = (i == (total - 1)) ?
				function () {
					self.finishAnimation()
				}: '';
				box_clone.animate({
					opacity: 'show',
					left: 0,
					top: 0
				},
				time_animate, easing, callback)
			}
		},
		animationParalell: function (options) {
			var self = this;
			this.settings.is_animating = true;
			var easing = (this.settings.easing_default == '') ? 'easeOutQuad': this.settings.easing_default;
			var time_animate = 400 / this.settings.velocity;
			this.setActualLevel();
			var total = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 16));
			var width_box = Math.ceil(this.settings.width_skitter / total);
			var height_box = this.settings.height_skitter;
			for (i = 0; i < total; i++) {
				var _bleft = (width_box * (i));
				var _btop = 0;
				var box_clone = this.getBoxClone();
				box_clone.css({
					left: _bleft,
					top: _btop - this.settings.height_skitter,
					width: width_box,
					height: height_box
				});
				box_clone.find('img').css({
					left: -(width_box * i),
					top: 0
				});
				this.addBoxClone(box_clone);
				var delay_time;
				if (i <= ((total / 2) - 1)) {
					delay_time = 1400 - (i * 200)
				} else if (i > ((total / 2) - 1)) {
					delay_time = ((i - (total / 2)) * 200)
				}
				delay_time = delay_time / 2.5;
				var callback = (i == (total - 1)) ?
				function () {
					self.finishAnimation()
				}: '';
				box_clone.delay(delay_time).animate({
					top: _btop + 'px',
					left: _bleft + 'px',
					opacity: 'show'
				},
				time_animate, easing, callback)
			}
		},
		animationBlind: function (options) {
			var self = this;
			var options = $.extend({},
			{
				height: false
			},
			options || {});
			this.settings.is_animating = true;
			var easing = (this.settings.easing_default == '') ? 'easeOutQuad': this.settings.easing_default;
			var time_animate = 400 / this.settings.velocity;
			this.setActualLevel();
			var total = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 16));
			var width_box = Math.ceil(this.settings.width_skitter / total);
			var height_box = this.settings.height_skitter;
			for (i = 0; i < total; i++) {
				var _bleft = (width_box * (i));
				var _btop = 0;
				var box_clone = this.getBoxClone();
				box_clone.css({
					left: _bleft,
					top: _btop,
					width: width_box,
					height: height_box
				});
				box_clone.find('img').css({
					left: -(width_box * i),
					top: 0
				});
				this.addBoxClone(box_clone);
				var delay_time;
				if (!options.height) {
					if (i <= ((total / 2) - 1)) {
						delay_time = 1400 - (i * 200)
					} else if (i > ((total / 2) - 1)) {
						delay_time = ((i - (total / 2)) * 200)
					}
					var callback = (i == (total - 1)) ?
					function () {
						self.finishAnimation()
					}: ''
				} else {
					if (i <= ((total / 2) - 1)) {
						delay_time = 200 + (i * 200)
					} else if (i > ((total / 2) - 1)) {
						delay_time = (((total / 2) - i) * 200) + (total * 100)
					}
					var callback = (i == (total / 2)) ?
					function () {
						self.finishAnimation()
					}: ''
				}
				delay_time = delay_time / 2.5;
				if (!options.height) {
					box_clone.delay(delay_time).animate({
						opacity: 'show',
						top: _btop + 'px',
						left: _bleft + 'px',
						width: 'show'
					},
					time_animate, easing, callback)
				} else {
					time_animate = time_animate + (i * 2);
					var easing = 'easeOutQuad';
					box_clone.delay(delay_time).animate({
						opacity: 'show',
						top: _btop + 'px',
						left: _bleft + 'px',
						height: 'show'
					},
					time_animate, easing, callback)
				}
			}
		},
		animationBlindDimension: function (options) {
			var self = this;
			var options = $.extend({},
			{
				height: true,
				time_animate: 500,
				delay: 100
			},
			options || {});
			this.settings.is_animating = true;
			var easing = (this.settings.easing_default == '') ? 'easeOutQuad': this.settings.easing_default;
			var time_animate = options.time_animate / this.settings.velocity;
			this.setActualLevel();
			var total = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 16));
			var width_box = Math.ceil(this.settings.width_skitter / total);
			var height_box = this.settings.height_skitter;
			for (i = 0; i < total; i++) {
				var _bleft = (width_box * (i));
				var _btop = 0;
				var box_clone = this.getBoxClone();
				box_clone.css({
					left: _bleft,
					top: _btop,
					width: width_box,
					height: height_box
				});
				box_clone.find('img').css({
					left: -(width_box * i),
					top: 0
				});
				this.addBoxClone(box_clone);
				var delay_time = options.delay * i;
				var callback = (i == (total - 1)) ?
				function () {
					self.finishAnimation()
				}: '';
				if (!options.height) {
					box_clone.delay(delay_time).animate({
						opacity: 'show',
						top: _btop + 'px',
						left: _bleft + 'px',
						width: 'show'
					},
					time_animate, easing, callback)
				} else {
					var easing = 'easeOutQuad';
					box_clone.delay(delay_time).animate({
						opacity: 'show',
						top: _btop + 'px',
						left: _bleft + 'px',
						height: 'show'
					},
					time_animate, easing, callback)
				}
			}
		},
		animationDirection: function (options) {
			var self = this;
			var options = $.extend({},
			{
				direction: 'top',
				delay_type: 'sequence',
				total: 7
			},
			options || {});
			this.settings.is_animating = true;
			var easing = (this.settings.easing_default == '') ? 'easeInOutExpo': this.settings.easing_default;
			var time_animate = 1200 / this.settings.velocity;
			var image_old = this.box_skitter.find('.image_main').attr('src');
			this.setActualLevel();
			this.setLinkAtual();
			this.box_skitter.find('.image_main').attr({
				'src': this.settings.image_atual
			});
			this.box_skitter.find('.image_main').hide();
			var total = options.total;
			for (i = 0; i < total; i++) {
				switch (options.direction) {
				default:
				case 'top':
					var width_box = Math.ceil(this.settings.width_skitter / total);
					var height_box = this.settings.height_skitter;
					var _itopc = 0;
					var _ileftc = (width_box * i);
					var _ftopc = -height_box;
					var _fleftc = _ileftc;
					var _itopn = height_box;
					var _ileftn = _ileftc;
					var _ftopn = 0;
					var _fleftn = _ileftc;
					var _vtop_image = 0;
					var _vleft_image = -_ileftc;
					break;
				case 'bottom':
					var width_box = Math.ceil(this.settings.width_skitter / total);
					var height_box = this.settings.height_skitter;
					var _itopc = 0;
					var _ileftc = (width_box * i);
					var _ftopc = height_box;
					var _fleftc = _ileftc;
					var _itopn = -height_box;
					var _ileftn = _ileftc;
					var _ftopn = 0;
					var _fleftn = _ileftc;
					var _vtop_image = 0;
					var _vleft_image = -_ileftc;
					break;
				case 'right':
					var width_box = this.settings.width_skitter;
					var height_box = Math.ceil(this.settings.height_skitter / total);
					var _itopc = (height_box * i);
					var _ileftc = 0;
					var _ftopc = _itopc;
					var _fleftc = width_box;
					var _itopn = _itopc;
					var _ileftn = -_fleftc;
					var _ftopn = _itopc;
					var _fleftn = 0;
					var _vtop_image = -_itopc;
					var _vleft_image = 0;
					break;
				case 'left':
					var width_box = this.settings.width_skitter;
					var height_box = Math.ceil(this.settings.height_skitter / total);
					var _itopc = (height_box * i);
					var _ileftc = 0;
					var _ftopc = _itopc;
					var _fleftc = -width_box;
					var _itopn = _itopc;
					var _ileftn = -_fleftc;
					var _ftopn = _itopc;
					var _fleftn = 0;
					var _vtop_image = -_itopc;
					var _vleft_image = 0;
					break
				}
				switch (options.delay_type) {
				case 'zebra':
				default:
					var delay_time = (i % 2 == 0) ? 0 : 150;
					break;
				case 'random':
					var delay_time = 30 * (Math.random() * 30);
					break;
				case 'sequence':
					var delay_time = i * 100;
					break
				}
				var box_clone = this.getBoxCloneImgOld(image_old);
				box_clone.find('img').css({
					left: _vleft_image,
					top: _vtop_image
				});
				box_clone.css({
					top: _itopc,
					left: _ileftc,
					width: width_box,
					height: height_box
				});
				this.addBoxClone(box_clone);
				box_clone.show();
				box_clone.delay(delay_time).animate({
					top: _ftopc,
					left: _fleftc
				},
				time_animate, easing);
				var box_clone_next = this.getBoxClone();
				box_clone_next.find('img').css({
					left: _vleft_image,
					top: _vtop_image
				});
				box_clone_next.css({
					top: _itopn,
					left: _ileftn,
					width: width_box,
					height: height_box
				});
				this.addBoxClone(box_clone_next);
				box_clone_next.show();
				var callback = (i == (total - 1)) ?
				function () {
					self.finishAnimation()
				}: '';
				box_clone_next.delay(delay_time).animate({
					top: _ftopn,
					left: _fleftn
				},
				time_animate, easing, callback)
			}
		},
		animationCubeSpread: function (options) {
			var self = this;
			this.settings.is_animating = true;
			var easing = (this.settings.easing_default == '') ? 'easeOutQuad': this.settings.easing_default;
			var time_animate = 700 / this.settings.velocity;
			this.setActualLevel();
			var division_w = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 8));
			var division_h = Math.ceil(this.settings.height_skitter / (this.settings.width_skitter / 8));
			var total = division_w * division_h;
			var width_box = Math.ceil(this.settings.width_skitter / division_w);
			var height_box = Math.ceil(this.settings.height_skitter / division_h);
			var init_top = 0;
			var init_left = 0;
			var col_t = 0;
			var col = 0;
			var order = new Array;
			var spread = new Array;
			for (i = 0; i < total; i++) {
				init_top = (i % 2 == 0) ? init_top: -init_top;
				init_left = (i % 2 == 0) ? init_left: -init_left;
				var _vtop = init_top + (height_box * col_t);
				var _vleft = (init_left + (width_box * col));
				order[i] = [_vtop, _vleft];
				col_t++;
				if (col_t == division_h) {
					col_t = 0;
					col++
				}
			}
			col_t = 0;
			col = 0;
			for (i = 0; i < total; i++) {
				spread[i] = i
			};
			var spread = self.shuffleArray(spread);
			for (i = 0; i < total; i++) {
				init_top = (i % 2 == 0) ? init_top: -init_top;
				init_left = (i % 2 == 0) ? init_left: -init_left;
				var _vtop = init_top + (height_box * col_t);
				var _vleft = (init_left + (width_box * col));
				var _vtop_image = -(height_box * col_t);
				var _vleft_image = -(width_box * col);
				var _btop = _vtop;
				var _bleft = _vleft;
				_vtop = order[spread[i]][0];
				_vleft = order[spread[i]][1];
				var box_clone = this.getBoxClone();
				box_clone.css({
					left: _vleft + 'px',
					top: _vtop + 'px',
					width: width_box,
					height: height_box
				});
				box_clone.find('img').css({
					left: _vleft_image,
					top: _vtop_image
				});
				this.addBoxClone(box_clone);
				var delay_time = 30 * (Math.random() * 30);
				if (i == (total - 1)) delay_time = 30 * 30;
				var callback = (i == (total - 1)) ?
				function () {
					self.finishAnimation()
				}: '';
				box_clone.delay(delay_time).animate({
					opacity: 'show',
					top: _btop + 'px',
					left: _bleft + 'px'
				},
				time_animate, easing, callback);
				col_t++;
				if (col_t == division_h) {
					col_t = 0;
					col++
				}
			}
		},
		animationGlassCube: function (options) {
			var self = this;
			this.settings.is_animating = true;
			var easing = (this.settings.easing_default == '') ? 'easeOutExpo': this.settings.easing_default;
			var time_animate = 500 / this.settings.velocity;
			this.setActualLevel();
			var total = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 10)) * 2;
			var width_box = Math.ceil(this.settings.width_skitter / total) * 2;
			var height_box = (this.settings.height_skitter) / 2;
			var col = 0;
			for (i = 0; i < total; i++) {
				mod = (i % 2) == 0 ? true: false;
				var _ileft = (width_box * (col));
				var _itop = (mod) ? -self.settings.height_skitter: self.settings.height_skitter;
				var _fleft = (width_box * (col));
				var _ftop = (mod) ? 0 : (height_box);
				var _bleft = -(width_box * col);
				var _btop = (mod) ? 0 : -(height_box);
				var delay_time = 120 * col;
				var box_clone = this.getBoxClone();
				box_clone.css({
					left: _ileft,
					top: _itop,
					width: width_box,
					height: height_box
				});
				box_clone.find('img').css({
					left: _bleft + (width_box / 1.5),
					top: _btop
				}).delay(delay_time).animate({
					left: _bleft,
					top: _btop
				},
				(time_animate * 1.9), 'easeOutQuad');
				this.addBoxClone(box_clone);
				var callback = (i == (total - 1)) ?
				function () {
					self.finishAnimation()
				}: '';
				box_clone.show().delay(delay_time).animate({
					top: _ftop,
					left: _fleft
				},
				time_animate, easing, callback);
				if ((i % 2) != 0) col++
			}
		},
		animationGlassBlock: function (options) {
			var self = this;
			this.settings.is_animating = true;
			var easing = (this.settings.easing_default == '') ? 'easeOutExpo': this.settings.easing_default;
			var time_animate = 700 / this.settings.velocity;
			this.setActualLevel();
			var total = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 10));
			var width_box = Math.ceil(this.settings.width_skitter / total);
			var height_box = (this.settings.height_skitter);
			for (i = 0; i < total; i++) {
				var _ileft = (width_box * (i));
				var _itop = 0;
				var _fleft = (width_box * (i));
				var _ftop = 0;
				var _bleft = -(width_box * (i));
				var _btop = 0;
				var delay_time = 100 * i;
				var box_clone = this.getBoxClone();
				box_clone.css({
					left: _ileft,
					top: _itop,
					width: width_box,
					height: height_box
				});
				box_clone.find('img').css({
					left: _bleft + (width_box / 1.5),
					top: _btop
				}).delay(delay_time).animate({
					left: _bleft,
					top: _btop
				},
				(time_animate * 1.1), 'easeInOutQuad');
				this.addBoxClone(box_clone);
				var callback = (i == (total - 1)) ?
				function () {
					self.finishAnimation()
				}: '';
				box_clone.delay(delay_time).animate({
					top: _ftop,
					left: _fleft,
					opacity: 'show'
				},
				time_animate, easing, callback)
			}
		},
		animationCircles: function (options) {
			var self = this;
			this.settings.is_animating = true;
			var easing = (this.settings.easing_default == '') ? 'easeInQuad': this.settings.easing_default;
			var time_animate = 500 / this.settings.velocity;
			this.setActualLevel();
			var total = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 10));
			var size_box = 100;
			var radius = Math.sqrt(Math.pow((this.settings.width_skitter), 2) + Math.pow((this.settings.height_skitter), 2));
			var radius = Math.ceil(radius);
			for (i = 0; i < total; i++) {
				var _ileft = (self.settings.width_skitter / 2) - (size_box / 2);
				var _itop = (self.settings.height_skitter / 2) - (size_box / 2);
				var _fleft = _ileft;
				var _ftop = _itop;
				var box_clone = null;
				box_clone = this.getBoxCloneBackground({
					image: self.settings.image_atual,
					left: _ileft,
					top: _itop,
					width: size_box,
					height: size_box,
					position: {
						top: -_itop,
						left: -_ileft
					}
				}).css3({
					'border-radius': radius + 'px'
				});
				size_box += 100;
				this.addBoxClone(box_clone);
				var delay_time = 70 * i;
				var callback = (i == (total - 1)) ?
				function () {
					self.finishAnimation()
				}: '';
				box_clone.delay(delay_time).animate({
					top: _ftop,
					left: _fleft,
					opacity: 'show'
				},
				time_animate, easing, callback)
			}
		},
		animationCirclesInside: function (options) {
			var self = this;
			this.settings.is_animating = true;
			var easing = (this.settings.easing_default == '') ? 'easeInQuad': this.settings.easing_default;
			var time_animate = 500 / this.settings.velocity;
			var image_old = this.box_skitter.find('.image_main').attr('src');
			this.setActualLevel();
			this.setLinkAtual();
			this.box_skitter.find('.image_main').attr({
				'src': this.settings.image_atual
			});
			var total = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 10));
			var radius = Math.sqrt(Math.pow((this.settings.width_skitter), 2) + Math.pow((this.settings.height_skitter), 2));
			var radius = Math.ceil(radius);
			var size_box = radius;
			for (i = 0; i < total; i++) {
				var _ileft = (self.settings.width_skitter / 2) - (size_box / 2);
				var _itop = (self.settings.height_skitter / 2) - (size_box / 2);
				var _fleft = _ileft;
				var _ftop = _itop;
				var box_clone = null;
				box_clone = this.getBoxCloneBackground({
					image: image_old,
					left: _ileft,
					top: _itop,
					width: size_box,
					height: size_box,
					position: {
						top: -_itop,
						left: -_ileft
					}
				}).css3({
					'border-radius': radius + 'px'
				});
				size_box -= 100;
				this.addBoxClone(box_clone);
				box_clone.show();
				var delay_time = 70 * i;
				var callback = (i == (total - 1)) ?
				function () {
					self.finishAnimation()
				}: '';
				box_clone.delay(delay_time).animate({
					top: _ftop,
					left: _fleft,
					opacity: 'hide'
				},
				time_animate, easing, callback)
			}
		},
		animationCirclesRotate: function (options) {
			var self = this;
			this.settings.is_animating = true;
			var easing = (this.settings.easing_default == '') ? 'easeOutQuad': this.settings.easing_default;
			var time_animate = 500 / this.settings.velocity;
			var image_old = this.box_skitter.find('.image_main').attr('src');
			this.setActualLevel();
			this.setLinkAtual();
			this.box_skitter.find('.image_main').attr({
				'src': this.settings.image_atual
			});
			var total = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 10));
			var radius = Math.sqrt(Math.pow((this.settings.width_skitter), 2) + Math.pow((this.settings.height_skitter), 2));
			var radius = Math.ceil(radius);
			var size_box = radius;
			for (i = 0; i < total; i++) {
				var _ileft = (self.settings.width_skitter / 2) - (size_box / 2);
				var _itop = (self.settings.height_skitter / 2) - (size_box / 2);
				var _fleft = _ileft;
				var _ftop = _itop;
				var box_clone = null;
				if ($.browser.mozilla) {
					box_clone = this.getBoxCloneImgOld(image_old);
					box_clone.css({
						left: _ileft,
						top: _itop,
						width: size_box,
						height: size_box
					}).css3({
						'border-radius': radius + 'px'
					});
					box_clone.find('img').css({
						left: -_ileft,
						top: -_itop
					})
				} else {
					box_clone = this.getBoxCloneBackground({
						image: image_old,
						left: _ileft,
						top: _itop,
						width: size_box,
						height: size_box,
						position: {
							top: -_itop,
							left: -_ileft
						}
					}).css3({
						'border-radius': radius + 'px'
					})
				}
				size_box -= 100;
				this.addBoxClone(box_clone);
				box_clone.show();
				var delay_time = 100 * i;
				var callback = (i == (total - 1)) ?
				function () {
					self.finishAnimation()
				}: '';
				var _rotate = (i % 2 == 0) ? '20deg': '-20deg';
				box_clone.delay(delay_time).animate({
					top: _ftop,
					left: _fleft,
					opacity: 'hide',
					rotate: _rotate
				},
				time_animate, easing, callback)
			}
		},
		animationCubeShow: function (options) {
			var self = this;
			this.settings.is_animating = true;
			var easing = (this.settings.easing_default == '') ? 'easeOutQuad': this.settings.easing_default;
			var time_animate = 400 / this.settings.velocity;
			this.setActualLevel();
			var division_w = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 8));
			var division_h = Math.ceil(this.settings.height_skitter / (this.settings.height_skitter / 4));
			var total = division_w * division_h;
			var width_box = Math.ceil(this.settings.width_skitter / division_w);
			var height_box = Math.ceil(this.settings.height_skitter / division_h);
			var last = false;
			var _btop = 0;
			var _bleft = 0;
			var line = 0;
			var col = 0;
			for (i = 0; i < total; i++) {
				_btop = height_box * line;
				_bleft = width_box * col;
				var delay_time = 30 * (i);
				var box_clone = this.getBoxClone();
				box_clone.css({
					left: _bleft,
					top: _btop,
					width: width_box,
					height: height_box
				}).hide();
				box_clone.find('img').css({
					left: -_bleft,
					top: -_btop
				});
				this.addBoxClone(box_clone);
				var callback = (i == (total - 1)) ?
				function () {
					self.finishAnimation()
				}: '';
				box_clone.delay(delay_time).animate({
					width: 'show',
					height: 'show'
				},
				time_animate, easing, callback);
				line++;
				if (line == division_h) {
					line = 0;
					col++
				}
			}
		},
		animationDirectionBars: function (options) {
			var self = this;
			var options = $.extend({},
			{
				direction: 'top'
			},
			options || {});
			this.settings.is_animating = true;
			var easing = (this.settings.easing_default == '') ? 'easeInOutQuad': this.settings.easing_default;
			var time_animate = 400 / this.settings.velocity;
			var image_old = this.box_skitter.find('.image_main').attr('src');
			this.setActualLevel();
			this.setLinkAtual();
			this.box_skitter.find('.image_main').attr({
				'src': this.settings.image_atual
			});
			var total = 12;
			var width_box = Math.ceil(this.settings.width_skitter / total);
			var height_box = this.settings.height_skitter;
			var _ftop = (options.direction == 'top') ? -height_box: height_box;
			for (i = 0; i < total; i++) {
				var _vtop = 0;
				var _vleft = (width_box * i);
				var _vtop_image = 0;
				var _vleft_image = -(width_box * i);
				var box_clone = this.getBoxCloneImgOld(image_old);
				box_clone.css({
					left: _vleft + 'px',
					top: _vtop + 'px',
					width: width_box,
					height: height_box
				});
				box_clone.find('img').css({
					left: _vleft_image,
					top: _vtop_image
				});
				this.addBoxClone(box_clone);
				box_clone.show();
				var delay_time = 70 * i;
				var callback = (i == (total - 1)) ?
				function () {
					self.finishAnimation()
				}: '';
				box_clone.delay(delay_time).animate({
					top: _ftop
				},
				time_animate, easing, callback)
			}
		},
		animationHideBars: function (options) {
			var self = this;
			var options = $.extend({},
			{
				random: false
			},
			options || {});
			this.settings.is_animating = true;
			var easing = (this.settings.easing_default == '') ? 'easeOutCirc': this.settings.easing_default;
			var time_animate = 700 / this.settings.velocity;
			var image_old = this.box_skitter.find('.image_main').attr('src');
			this.setActualLevel();
			this.setLinkAtual();
			this.box_skitter.find('.image_main').attr({
				'src': this.settings.image_atual
			});
			var division_w = Math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 10));
			var total = division_w;
			var width_box = Math.ceil(this.settings.width_skitter / division_w);
			var height_box = this.settings.height_skitter;
			for (i = 0; i < total; i++) {
				var _vtop = 0;
				var _vleft = width_box * i;
				var _vtop_image = 0;
				var _vleft_image = -(width_box * i);
				var _fleft = '+=' + width_box;
				var box_clone = this.getBoxCloneImgOld(image_old);
				box_clone.css({
					left: 0,
					top: 0,
					width: width_box,
					height: height_box
				});
				box_clone.find('img').css({
					left: _vleft_image,
					top: _vtop_image
				});
				var box_clone_main = this.getBoxCloneImgOld(image_old);
				box_clone_main.css({
					left: _vleft + 'px',
					top: _vtop + 'px',
					width: width_box,
					height: height_box
				});
				box_clone_main.html(box_clone);
				this.addBoxClone(box_clone_main);
				box_clone.show();
				box_clone_main.show();
				var delay_time = 50 * i;
				var callback = (i == (total - 1)) ?
				function () {
					self.finishAnimation()
				}: '';
				box_clone.delay(delay_time).animate({
					left: _fleft
				},
				time_animate, easing, callback)
			}
		},
		animationSwapBars: function (options) {
			var self = this;
			var options = $.extend({},
			{
				direction: 'top',
				delay_type: 'sequence',
				total: 7,
				easing: 'easeOutCirc'
			},
			options || {});
			this.settings.is_animating = true;
			var easing = (this.settings.easing_default == '') ? options.easing: this.settings.easing_default;
			var time_animate = 500 / this.settings.velocity;
			var image_old = this.box_skitter.find('.image_main').attr('src');
			this.setActualLevel();
			this.setLinkAtual();
			this.box_skitter.find('.image_main').attr({
				'src': this.settings.image_atual
			});
			this.box_skitter.find('.image_main').hide();
			var total = options.total;
			for (i = 0; i < total; i++) {
				var width_box = Math.ceil(this.settings.width_skitter / total);
				var height_box = this.settings.height_skitter;
				var _itopc = 0;
				var _ileftc = (width_box * i);
				var _ftopc = -height_box;
				var _fleftc = _ileftc + width_box;
				var _itopn = height_box;
				var _ileftn = _ileftc;
				var _ftopn = 0;
				var _fleftn = _ileftc;
				var _vtop_image = 0;
				var _vleft_image = -_ileftc;
				switch (options.delay_type) {
				case 'zebra':
				default:
					var delay_time = (i % 2 == 0) ? 0 : 150;
					break;
				case 'random':
					var delay_time = 30 * (Math.random() * 30);
					break;
				case 'sequence':
					var delay_time = i * 100;
					break
				}
				var box_clone = this.getBoxCloneImgOld(image_old);
				box_clone.find('img').css({
					left: _vleft_image,
					top: 0
				});
				box_clone.css({
					top: 0,
					left: 0,
					width: width_box,
					height: height_box
				});
				var box_clone_next = this.getBoxClone();
				box_clone_next.find('img').css({
					left: _vleft_image,
					top: 0
				});
				box_clone_next.css({
					top: 0,
					left: -width_box,
					width: width_box,
					height: height_box
				});
				var box_clone_container = this.getBoxClone();
				box_clone_container.html('').append(box_clone).append(box_clone_next);
				box_clone_container.css({
					top: 0,
					left: _ileftc,
					width: width_box,
					height: height_box
				});
				this.addBoxClone(box_clone_container);
				box_clone_container.show();
				box_clone.show();
				box_clone_next.show();
				var callback = (i == (total - 1)) ?
				function () {
					self.finishAnimation()
				}: '';
				box_clone.delay(delay_time).animate({
					left: width_box
				},
				time_animate, easing);
				box_clone_next.delay(delay_time).animate({
					left: 0
				},
				time_animate, easing, callback)
			}
		},
		animationSwapBlocks: function (options) {
			var self = this;
			var options = $.extend({},
			{
				easing_old: 'easeInOutQuad',
				easing_new: 'easeOutQuad'
			},
			options || {});
			this.settings.is_animating = true;
			var easing_old = (this.settings.easing_default == '') ? options.easing_old: this.settings.easing_default;
			var easing_new = (this.settings.easing_default == '') ? options.easing_new: this.settings.easing_default;
			var time_animate = 800 / this.settings.velocity;
			var image_old = this.box_skitter.find('.image_main').attr('src');
			this.setActualLevel();
			this.setLinkAtual();
			this.box_skitter.find('.image_main').attr({
				'src': this.settings.image_atual
			});
			this.box_skitter.find('.image_main').hide();
			var total = 2;
			var width_box = this.settings.width_skitter;
			var height_box = Math.ceil(this.settings.height_skitter / total);
			var box_clone1 = this.getBoxCloneImgOld(image_old),
			box_clone2 = this.getBoxCloneImgOld(image_old);
			box_clone1.find('img').css({
				left: 0,
				top: 0
			});
			box_clone1.css({
				top: 0,
				left: 0,
				width: width_box,
				height: height_box
			});
			box_clone2.find('img').css({
				left: 0,
				top: -height_box
			});
			box_clone2.css({
				top: height_box,
				left: 0,
				width: width_box,
				height: height_box
			});
			var box_clone_next1 = this.getBoxClone(),
			box_clone_next2 = this.getBoxClone();
			box_clone_next1.find('img').css({
				left: 0,
				top: height_box
			});
			box_clone_next1.css({
				top: 0,
				left: 0,
				width: width_box,
				height: height_box
			});
			box_clone_next2.find('img').css({
				left: 0,
				top: -(height_box * total)
			});
			box_clone_next2.css({
				top: height_box,
				left: 0,
				width: width_box,
				height: height_box
			});
			this.addBoxClone(box_clone_next1);
			this.addBoxClone(box_clone_next2);
			this.addBoxClone(box_clone1);
			this.addBoxClone(box_clone2);
			box_clone1.show();
			box_clone2.show();
			box_clone_next1.show();
			box_clone_next2.show();
			var callback = function () {
				self.finishAnimation()
			};
			box_clone1.find('img').animate({
				top: height_box
			},
			time_animate, easing_old, function () {
				box_clone1.remove()
			});
			box_clone2.find('img').animate({
				top: -(height_box * total)
			},
			time_animate, easing_old, function () {
				box_clone2.remove()
			});
			box_clone_next1.find('img').animate({
				top: 0
			},
			time_animate, easing_new);
			box_clone_next2.find('img').animate({
				top: -height_box
			},
			time_animate, easing_new, callback)
		},
		animationCut: function (options) {
			var self = this;
			var options = $.extend({},
			{
				easing_old: 'easeInOutExpo',
				easing_new: 'easeInOutExpo'
			},
			options || {});
			this.settings.is_animating = true;
			var easing_old = (this.settings.easing_default == '') ? options.easing_old: this.settings.easing_default;
			var easing_new = (this.settings.easing_default == '') ? options.easing_new: this.settings.easing_default;
			var time_animate = 900 / this.settings.velocity;
			var image_old = this.box_skitter.find('.image_main').attr('src');
			this.setActualLevel();
			this.setLinkAtual();
			this.box_skitter.find('.image_main').attr({
				'src': this.settings.image_atual
			});
			this.box_skitter.find('.image_main').hide();
			var total = 2;
			var width_box = this.settings.width_skitter;
			var height_box = Math.ceil(this.settings.height_skitter / total);
			var box_clone1 = this.getBoxCloneImgOld(image_old),
			box_clone2 = this.getBoxCloneImgOld(image_old);
			box_clone1.find('img').css({
				left: 0,
				top: 0
			});
			box_clone1.css({
				top: 0,
				left: 0,
				width: width_box,
				height: height_box
			});
			box_clone2.find('img').css({
				left: 0,
				top: -height_box
			});
			box_clone2.css({
				top: height_box,
				left: 0,
				width: width_box,
				height: height_box
			});
			var box_clone_next1 = this.getBoxClone(),
			box_clone_next2 = this.getBoxClone();
			box_clone_next1.find('img').css({
				left: 0,
				top: 0
			});
			box_clone_next1.css({
				top: 0,
				left: width_box,
				width: width_box,
				height: height_box
			});
			box_clone_next2.find('img').css({
				left: 0,
				top: -height_box
			});
			box_clone_next2.css({
				top: height_box,
				left: -width_box,
				width: width_box,
				height: height_box
			});
			this.addBoxClone(box_clone_next1);
			this.addBoxClone(box_clone_next2);
			this.addBoxClone(box_clone1);
			this.addBoxClone(box_clone2);
			box_clone1.show();
			box_clone2.show();
			box_clone_next1.show();
			box_clone_next2.show();
			var callback = function () {
				self.finishAnimation()
			};
			box_clone1.animate({
				left: -width_box
			},
			time_animate, easing_old, function () {
				box_clone1.remove()
			});
			box_clone2.animate({
				left: width_box
			},
			time_animate, easing_old, function () {
				box_clone2.remove()
			});
			box_clone_next1.animate({
				left: 0
			},
			time_animate, easing_new);
			box_clone_next2.animate({
				left: 0
			},
			time_animate, easing_new, callback)
		},
		finishAnimation: function (options) {
			var self = this;
			this.box_skitter.find('.image_main').show();
			this.showBoxText();
			this.settings.is_animating = false;
			this.box_skitter.find('.image_main').attr({
				'src': this.settings.image_atual
			});
			this.box_skitter.find('.image a').attr({
				'href': this.settings.link_atual
			});
			if (!this.settings.is_hover_box_skitter && !this.settings.is_paused && !this.settings.is_blur) {
				this.timer = setTimeout(function () {
					self.completeMove()
				},
				this.settings.interval)
			}
			self.startTime()
		},
		completeMove: function () {
			this.clearTimer(true);
			this.box_skitter.find('.box_clone').remove();
			if (!this.settings.is_paused && !this.settings.is_blur) this.nextImage()
		},
		setActualLevel: function () {
			if ($.isFunction(this.settings.imageSwitched)) this.settings.imageSwitched(this.settings.image_i, this);
			this.setImageLink();
			this.addClassNumber();
			this.hideBoxText();
			this.increasingImage()
		},
		setImageLink: function () {
			var name_image = this.settings.images_links[this.settings.image_i][0];
			var link_image = this.settings.images_links[this.settings.image_i][1];
			var label_image = this.settings.images_links[this.settings.image_i][3];
			var target_link = this.settings.images_links[this.settings.image_i][4];
			this.settings.image_atual = name_image;
			this.settings.link_atual = link_image;
			this.settings.label_atual = label_image;
			this.settings.target_atual = target_link
		},
		addClassNumber: function () {
			var self = this;
			this.box_skitter.find('.image_number_select').removeClass('image_number_select');
			$('#image_n_' + (this.settings.image_i + 1) + '_' + self.number_skitter).addClass('image_number_select')
		},
		increasingImage: function () {
			this.settings.image_i++;
			if (this.settings.image_i == this.settings.images_links.length) {
				this.settings.image_i = 0
			}
		},
		getBoxClone: function () {
			if (this.settings.link_atual != '#') {
				var img_clone = $('<a href="' + this.settings.link_atual + '"><img src="' + this.settings.image_atual + '" /></a>');
				img_clone.attr({
					'target': this.settings.target_atual
				})
			} else {
				var img_clone = $('<img src="' + this.settings.image_atual + '" />')
			}
			img_clone = this.resizeImage(img_clone);
			var box_clone = $('<div class="box_clone"></div>');
			box_clone.append(img_clone);
			return box_clone
		},
		getBoxCloneImgOld: function (image_old) {
			if (this.settings.link_atual != '#') {
				var img_clone = $('<a href="' + this.settings.link_atual + '"><img src="' + image_old + '" /></a>');
				img_clone.attr({
					'target': this.settings.target_atual
				})
			} else {
				var img_clone = $('<img src="' + image_old + '" />')
			}
			img_clone = this.resizeImage(img_clone);
			var box_clone = $('<div class="box_clone"></div>');
			box_clone.append(img_clone);
			return box_clone
		},
		resizeImage: function (img_clone) {
			if (this.settings.fullscreen) {
				img_clone.find('img').height(this.settings.height_skitter)
			}
			return img_clone
		},
		addBoxClone: function (box_clone) {
			this.box_skitter.find('.container_skitter').append(box_clone)
		},
		getEasing: function (easing) {
			var easing_accepts = ['easeInQuad', 'easeOutQuad', 'easeInOutQuad', 'easeInCubic', 'easeOutCubic', 'easeInOutCubic', 'easeInQuart', 'easeOutQuart', 'easeInOutQuart', 'easeInQuint', 'easeOutQuint', 'easeInOutQuint', 'easeInSine', 'easeOutSine', 'easeInOutSine', 'easeInExpo', 'easeOutExpo', 'easeInOutExpo', 'easeInCirc', 'easeOutCirc', 'easeInOutCirc', 'easeInElastic', 'easeOutElastic', 'easeInOutElastic', 'easeInBack', 'easeOutBack', 'easeInOutBack', 'easeInBounce', 'easeOutBounce', 'easeInOutBounce', ];
			if (jQuery.inArray(easing, easing_accepts) > 0) {
				return easing
			} else {
				return ''
			}
		},
		getRandom: function (i) {
			return Math.floor(Math.random() * i)
		},
		setValueBoxText: function () {
			this.box_skitter.find('.label_skitter').html(this.settings.label_atual)
		},
		showBoxText: function () {
			var self = this;
			if (this.settings.label_atual != undefined && this.settings.label_atual != '' && self.settings.label) {
				switch (self.settings.labelAnimation) {
				case 'slideUp':
				default:
					self.box_skitter.find('.label_skitter').slideDown(400);
					break;
				case 'left':
				case 'right':
					self.box_skitter.find('.label_skitter').animate({
						left:
						0
					},
					400, 'easeInOutQuad');
					break;
				case 'fixed':
					break
				}
			}
		},
		hideBoxText: function () {
			var self = this;
			switch (self.settings.labelAnimation) {
			case 'slideUp':
			default:
				this.box_skitter.find('.label_skitter').slideUp(200, function () {
					self.setValueBoxText()
				});
				break;
			case 'left':
			case 'right':
				var _left = (self.settings.labelAnimation == 'left') ? -(self.box_skitter.find('.label_skitter').width()) : (self.box_skitter.find('.label_skitter').width());
				self.box_skitter.find('.label_skitter').animate({
					left: _left
				},
				400, 'easeInOutQuad', function () {
					self.setValueBoxText()
				});
				break;
			case 'fixed':
				self.setValueBoxText();
				break
			}
		},
		stopOnMouseOver: function () {
			var self = this;
			if (self.settings.stop_over) {
				self.box_skitter.hover(function () {
					if (self.settings.stop_over) self.settings.is_hover_box_skitter = true;
					if (!self.settings.is_paused_time) {
						self.pauseTime()
					}
					self.setHideTools('hover');
					self.clearTimer(true)
				},
				function () {
					if (self.settings.stop_over) self.settings.is_hover_box_skitter = false;
					if (self.settings.elapsedTime == 0 && !self.settings.is_animating && !self.settings.is_paused) {
						self.startTime()
					} else if (!self.settings.is_paused) {
						self.resumeTime()
					}
					self.setHideTools('out');
					self.clearTimer(true);
					if (!self.settings.is_animating && self.settings.images_links.length > 1) {
						self.timer = setTimeout(function () {
							self.completeMove()
						},
						self.settings.interval - self.settings.elapsedTime);
						self.box_skitter.find('.image_main').attr({
							'src': self.settings.image_atual
						});
						self.box_skitter.find('.image a').attr({
							'href': self.settings.link_atual
						})
					}
				})
			} else {
				self.box_skitter.hover(function () {
					self.setHideTools('hover')
				},
				function () {
					self.setHideTools('out')
				})
			}
		},
		setHideTools: function (type) {
			var self = this;
			var opacity_elements = self.settings.opacity_elements;
			var interval_in_elements = self.settings.interval_in_elements;
			var interval_out_elements = self.settings.interval_out_elements;
			if (type == 'hover') {
				if (self.settings.hideTools) {
					if (self.settings.numbers) {
						self.box_skitter.find('.info_slide').show().css({
							opacity: 0
						}).animate({
							opacity: opacity_elements
						},
						interval_in_elements)
					}
					if (self.settings.navigation) {
						self.box_skitter.find('.prev_button, .next_button').show().css({
							opacity: 0
						}).animate({
							opacity: opacity_elements
						},
						interval_in_elements)
					}
					if (self.settings.focus && !self.settings.foucs_active) {
						self.box_skitter.find('.focus_button').stop().show().css({
							opacity: 0
						}).animate({
							opacity: opacity_elements
						},
						interval_in_elements)
					}
					if (self.settings.controls) {
						self.box_skitter.find('.play_pause_button').stop().show().css({
							opacity: 0
						}).animate({
							opacity: opacity_elements
						},
						interval_in_elements)
					}
				}
				if (self.settings.focus && !self.settings.foucs_active && !self.settings.hideTools) {
					self.box_skitter.find('.focus_button').stop().animate({
						opacity: 1
					},
					interval_in_elements)
				}
				if (self.settings.controls && !self.settings.hideTools) {
					self.box_skitter.find('.play_pause_button').stop().animate({
						opacity: 1
					},
					interval_in_elements)
				}
			} else {
				if (self.settings.hideTools) {
					if (self.settings.numbers) {
						self.box_skitter.find('.info_slide').queue("fx", []).show().css({
							opacity: opacity_elements
						}).animate({
							opacity: 0
						},
						interval_out_elements)
					}
					if (self.settings.navigation) {
						self.box_skitter.find('.prev_button, .next_button').queue("fx", []).show().css({
							opacity: opacity_elements
						}).animate({
							opacity: 0
						},
						interval_out_elements)
					}
					if (self.settings.focus && !self.settings.foucs_active) {
						self.box_skitter.find('.focus_button').stop().css({
							opacity: opacity_elements
						}).animate({
							opacity: 0
						},
						interval_out_elements)
					}
					if (self.settings.controls) {
						self.box_skitter.find('.play_pause_button').stop().css({
							opacity: opacity_elements
						}).animate({
							opacity: 0
						},
						interval_out_elements)
					}
				}
				if (self.settings.focus && !self.settings.foucs_active && !self.settings.hideTools) {
					self.box_skitter.find('.focus_button').stop().animate({
						opacity: 0.3
					},
					interval_out_elements)
				}
				if (self.settings.controls && !self.settings.hideTools) {
					self.box_skitter.find('.play_pause_button').stop().animate({
						opacity: 0.3
					},
					interval_out_elements)
				}
			}
		},
		clearTimer: function (force) {
			var self = this;
			clearInterval(self.timer)
		},
		setLinkAtual: function () {
			if (this.settings.link_atual != '#' && this.settings.link_atual != '') {
				this.box_skitter.find('.image a').attr({
					'href': this.settings.link_atual,
					'target': this.settings.target_atual
				})
			} else {
				this.box_skitter.find('.image a').removeAttr('href')
			}
		},
		hideTools: function () {
			this.box_skitter.find('.info_slide').fadeTo(0, 0);
			this.box_skitter.find('.prev_button').fadeTo(0, 0);
			this.box_skitter.find('.next_button').fadeTo(0, 0);
			this.box_skitter.find('.focus_button').fadeTo(0, 0);
			this.box_skitter.find('.play_pause_button').fadeTo(0, 0)
		},
		focusSkitter: function () {
			var self = this;
			var focus_button = $('<a href="#" class="focus_button">focus</a>');
			self.box_skitter.append(focus_button);
			var _left = (self.settings.width_skitter - focus_button.width()) / 2;
			var _space = 0;
			if (self.settings.controls) _left -= 25;
			if (self.settings.controls_position == self.settings.focus_position) _space = focus_button.width() + 5;
			var cssPosition = {
				left: _left
			};
			switch (self.settings.focus_position) {
			case 'leftTop':
				cssPosition = {
					left: 5 + _space,
					top: 30
				};
				break;
			case 'rightTop':
				cssPosition = {
					right: 5 + _space,
					top: 30
				};
				break;
			case 'leftBottom':
				cssPosition = {
					left: 5 + _space,
					bottom: 5,
					top: 'auto'
				};
				break;
			case 'rightBottom':
				cssPosition = {
					right: 5 + _space,
					bottom: 5,
					top: 'auto'
				};
				break
			}
			focus_button.css(cssPosition).animate({
				opacity: 0.3
			},
			self.settings.interval_in_elements);
			$(document).keypress(function (e) {
				var code = (e.keyCode ? e.keyCode: e.which);
				if (code == 27) $('#overlay_skitter').trigger('click')
			});
			var _top = $('.box_skitter').offset().top;
			var _left = $('.box_skitter').offset().left;
			self.box_skitter.find('.focus_button').click(function () {
				if (self.settings.foucs_active) return false;
				self.settings.foucs_active = true;
				$(this).stop().animate({
					opacity: 0
				},
				self.settings.interval_out_elements);
				var div = $('<div id="overlay_skitter"></div>').height($(document).height()).hide().fadeTo(self.settings.interval_in_elements, 0.98);
				var _topFinal = (($(window).height() - $('.box_skitter').height()) / 2) + $(document).scrollTop();
				var _leftFinal = ($(window).width() - $('.box_skitter').width()) / 2;
				self.box_skitter.before('<div id="mark_position"></div>');
				$('body').prepend(div);
				$('body').prepend(self.box_skitter);
				self.box_skitter.css({
					'top': _top,
					'left': _left,
					'position': 'absolute',
					'z-index': 9999
				}).animate({
					'top': _topFinal,
					'left': _leftFinal
				},
				2000, 'easeOutExpo');
				$('#mark_position').width($('.box_skitter').width()).height($('.box_skitter').height()).css({
					'background': 'none'
				}).fadeTo(300, 0.3);
				return false
			});
			$('#overlay_skitter').live('click', function () {
				if ($(this).hasClass('finish_overlay_skitter')) return false;
				self.settings.foucs_active = false;
				$(this).addClass('finish_overlay_skitter');
				if (!self.settings.hideTools) self.box_skitter.find('.focus_button').animate({
					opacity: 0.3
				},
				200);
				self.box_skitter.stop().animate({
					'top': _top,
					'left': _left
				},
				200, 'easeOutExpo', function () {
					$('#mark_position').before(self.box_skitter);
					$(this).css({
						'position': 'relative',
						'top': 0,
						'left': 0
					});
					$('#mark_position').remove()
				});
				$('#overlay_skitter').fadeTo(self.settings.interval_out_elements, 0, function () {
					$(this).remove()
				});
				return false
			})
		},
		setControls: function () {
			var self = this;
			var play_pause_button = $('<a href="#" class="play_pause_button">pause</a>');
			self.box_skitter.append(play_pause_button);
			var _left = (self.settings.width_skitter - play_pause_button.width()) / 2;
			if (self.settings.focus) _left += 25;
			var cssPosition = {
				left: _left
			};
			switch (self.settings.controls_position) {
			case 'leftTop':
				cssPosition = {
					left: 5,
					top: 30
				};
				break;
			case 'rightTop':
				cssPosition = {
					right: 5,
					top: 30
				};
				break;
			case 'leftBottom':
				cssPosition = {
					left: 5,
					bottom: 5,
					top: 'auto'
				};
				break;
			case 'rightBottom':
				cssPosition = {
					right: 5,
					bottom: 5,
					top: 'auto'
				};
				break
			}
			play_pause_button.css(cssPosition).animate({
				opacity: 0.3
			},
			self.settings.interval_in_elements);
			play_pause_button.click(function () {
				if (!self.settings.is_paused) {
					$(this).html('play');
					$(this).fadeTo(100, 0.5).fadeTo(100, 1);
					$(this).addClass('play_button');
					self.pauseTime();
					self.settings.is_paused = true;
					self.clearTimer(true)
				} else {
					if (!self.settings.is_animating && !self.box_skitter.find('.progressbar').is(':visible')) {
						self.settings.elapsedTime = 0
					} else {
						self.resumeTime()
					}
					if (!self.settings.progressbar) self.resumeTime();
					self.settings.is_paused = false;
					$(this).html('pause');
					$(this).fadeTo(100, 0.5).fadeTo(100, 1);
					$(this).removeClass('play_button');
					if (!self.settings.stop_over) {
						self.clearTimer(true);
						if (!self.settings.is_animating && self.settings.images_links.length > 1) {
							self.timer = setTimeout(function () {
								self.completeMove()
							},
							self.settings.interval - self.settings.elapsedTime);
							self.box_skitter.find('.image_main').attr({
								'src': self.settings.image_atual
							});
							self.box_skitter.find('.image a').attr({
								'href': self.settings.link_atual
							})
						}
					}
				}
				return false
			})
		},
		objectSize: function (obj) {
			var size = 0,
			key;
			for (key in obj) {
				if (obj.hasOwnProperty(key)) size++
			}
			return size
		},
		addProgressBar: function () {
			var self = this;
			var progressbar = $('<div class="progressbar"></div>');
			self.box_skitter.append(progressbar);
			if (self.objectSize(self.settings.progressbar_css) == 0) {
				if (parseInt(progressbar.css('width')) > 0) {
					self.settings.progressbar_css.width = parseInt(progressbar.css('width'))
				} else {
					self.settings.progressbar_css = {
						width: self.settings.width_skitter,
						height: 5
					}
				}
			}
			if (self.objectSize(self.settings.progressbar_css) > 0 && self.settings.progressbar_css.width == undefined) {
				self.settings.progressbar_css.width = self.settings.width_skitter
			}
			progressbar.css(self.settings.progressbar_css).hide()
		},
		startProgressBar: function () {
			var self = this;
			if (self.settings.is_hover_box_skitter || self.settings.is_paused || self.settings.is_blur || !self.settings.progressbar) return false;
			self.box_skitter.find('.progressbar').hide().dequeue().width(self.settings.progressbar_css.width).animate({
				width: 'show'
			},
			self.settings.interval, 'linear')
		},
		pauseProgressBar: function () {
			var self = this;
			if (!self.settings.is_animating) {
				self.box_skitter.find('.progressbar').stop()
			}
		},
		resumeProgressBar: function () {
			var self = this;
			if (self.settings.is_hover_box_skitter || self.settings.is_paused || !self.settings.progressbar) return false;
			self.box_skitter.find('.progressbar').dequeue().animate({
				width: self.settings.progressbar_css.width
			},
			(self.settings.interval - self.settings.elapsedTime), 'linear')
		},
		hideProgressBar: function () {
			var self = this;
			if (!self.settings.progressbar) return false;
			self.box_skitter.find('.progressbar').stop().fadeOut(300, function () {
				$(this).width(self.settings.progressbar_css.width)
			})
		},
		startTime: function () {
			var self = this;
			self.settings.is_paused_time = false;
			var date = new Date();
			self.settings.elapsedTime = 0;
			self.settings.timeStart = date.getTime();
			self.startProgressBar()
		},
		pauseTime: function () {
			var self = this;
			if (self.settings.is_paused_time) return false;
			self.settings.is_paused_time = true;
			var date = new Date();
			self.settings.elapsedTime += date.getTime() - self.settings.timeStart;
			self.pauseProgressBar()
		},
		resumeTime: function () {
			var self = this;
			self.settings.is_paused_time = false;
			var date = new Date();
			self.settings.timeStart = date.getTime();
			self.resumeProgressBar()
		},
		enableNavigationKeys: function () {
			var self = this;
			$(window).keydown(function (e) {
				if (e.keyCode == 39 || e.keyCode == 40) {
					self.box_skitter.find('.next_button').trigger('click')
				} else if (e.keyCode == 37 || e.keyCode == 38) {
					self.box_skitter.find('.prev_button').trigger('click')
				}
			})
		},
		getBoxCloneBackground: function (options) {
			var box_clone = $('<div class="box_clone"></div>');
			box_clone.css({
				'left': options.left,
				'top': options.top,
				'width': options.width,
				'height': options.height,
				'background-image': 'url(' + options.image + ')',
				'background-position': options.position.left + 'px ' + options.position.top + 'px'
			});
			return box_clone
		},
		shuffleArray: function (arrayOrigem) {
			var self = this;
			var arrayDestino = new Array();
			var indice;
			while (arrayOrigem.length > 0) {
				indice = self.randomUnique(0, arrayOrigem.length - 1);
				arrayDestino[arrayDestino.length] = arrayOrigem[indice];
				arrayOrigem.splice(indice, 1)
			}
			return arrayDestino
		},
		randomUnique: function (valorIni, valorFim) {
			var numRandom;
			do numRandom = Math.random();
			while (numRandom == 1);
			return (numRandom * (valorFim - valorIni + 1) + valorIni) | 0
		},
		windowFocusOut: function () {
			var self = this;
			$(window).bind('blur', function () {
				self.settings.is_blur = true;
				self.pauseTime();
				self.clearTimer(true)
			});
			$(window).bind('focus', function () {
				if (self.settings.images_links.length > 1) {
					self.settings.is_blur = false;
					if (self.settings.elapsedTime == 0) {
						self.startTime()
					} else {
						self.resumeTime()
					}
					if (self.settings.elapsedTime <= self.settings.interval) {
						self.clearTimer(true);
						self.timer = setTimeout(function () {
							self.completeMove()
						},
						self.settings.interval - self.settings.elapsedTime);
						self.box_skitter.find('.image_main').attr({
							'src': self.settings.image_atual
						});
						self.box_skitter.find('.image a').attr({
							'href': self.settings.link_atual
						})
					}
				}
			})
		}
	});
	$.fn.css3 = function (props) {
		var css = {};
		var prefixes = ['moz', 'ms', 'o', 'webkit'];
		for (var prop in props) {
			for (var i = 0; i < prefixes.length; i++) css['-' + prefixes[i] + '-' + prop] = props[prop];
			css[prop] = props[prop]
		}
		this.css(css);
		return this
	};
	var rotateUnits = 'deg';
	$.fn.rotate = function (val) {
		var style = $(this).css('transform') || 'none';
		if (typeof val == 'undefined') {
			if (style) {
				var m = style.match(/rotate\(([^)]+)\)/);
				if (m && m[1]) {
					return m[1]
				}
			}
			return 0
		}
		var m = val.toString().match(/^(-?\d+(\.\d+)?)(.+)?$/);
		if (m) {
			if (m[3]) rotateUnits = m[3];
			$(this).css('transform', style.replace(/none|rotate\([^)]*\)/, '') + 'rotate(' + m[1] + rotateUnits + ')')
		}
		return this
	};
	$.fn.scale = function (val, duration, options) {
		var style = $(this).css('transform');
		if (typeof val == 'undefined') {
			if (style) {
				var m = style.match(/scale\(([^)]+)\)/);
				if (m && m[1]) {
					return m[1]
				}
			}
			return 1
		}
		$(this).css('transform', style.replace(/none|scale\([^)]*\)/, '') + 'scale(' + val + ')');
		return this
	};
	var curProxied = $.fx.prototype.cur;
	$.fx.prototype.cur = function () {
		if (this.prop == 'rotate') {
			return parseFloat($(this.elem).rotate())
		} else if (this.prop == 'scale') {
			return parseFloat($(this.elem).scale())
		}
		return curProxied.apply(this, arguments)
	};
	$.fx.step.rotate = function (fx) {
		$(fx.elem).rotate(fx.now + rotateUnits)
	};
	$.fx.step.scale = function (fx) {
		$(fx.elem).scale(fx.now)
	};
	var animateProxied = $.fn.animate;
	$.fn.animate = function (prop) {
		if (typeof prop['rotate'] != 'undefined') {
			var m = prop['rotate'].toString().match(/^(([+-]=)?(-?\d+(\.\d+)?))(.+)?$/);
			if (m && m[5]) {
				rotateUnits = m[5]
			}
			prop['rotate'] = m[1]
		}
		return animateProxied.apply(this, arguments)
	};
	function getTransformProperty(element) {
		var properties = ['transform', 'WebkitTransform', 'msTransform', 'MozTransform', 'OTransform'];
		var p;
		while (p = properties.shift()) {
			if (typeof element.style[p] != 'undefined') {
				return p
			}
		}
		return 'transform'
	};
	var _propsObj = null;
	var proxied = $.fn.css;
	$.fn.css = function (arg, val) {
		if (_propsObj === null) {
			if (typeof $.cssProps != 'undefined') {
				_propsObj = $.cssProps
			} else if (typeof $.props != 'undefined') {
				_propsObj = $.props
			} else {
				_propsObj = {}
			}
		}
		if (typeof _propsObj['transform'] == 'undefined' && (arg == 'transform' || (typeof arg == 'object' && typeof arg['transform'] != 'undefined'))) {
			_propsObj['transform'] = getTransformProperty(this.get(0))
		}
		if (_propsObj['transform'] != 'transform') {
			if (arg == 'transform') {
				arg = _propsObj['transform'];
				if (typeof val == 'undefined' && jQuery.style) {
					return jQuery.style(this.get(0), arg)
				}
			} else if (typeof arg == 'object' && typeof arg['transform'] != 'undefined') {
				arg[_propsObj['transform']] = arg['transform'];
				delete arg['transform']
			}
		}
		return proxied.apply(this, arguments)
	}
})(jQuery);

//Ajax Auto Featured Post (Slideshow) by MKR
(function(a){a.AutofeaturedPost=function(c,b){var d=this;d.$el=a(c);d.init=function(){d.options=a.extend({},a.AutofeaturedPost.defaultOptions,b);d.$el.html('<div class="featuredpost box_skitter box_skitter_home maxxiz-theme"><ul class="featpost"></ul></div>').addClass(d.options.loadingClass);var f=function(h){var m=h.length,l,k;if(m===0){return false}while(--m){l=Math.floor(Math.random()*(m+1));k=h[m];h[m]=h[l];h[l]=k}return h};var g=function(x){var s,m,t,o,w,n="",k="",u=(d.options.RandompostActive===true?f(x.feed.entry):x.feed.entry);for(var q=0,l=u.length;q<l;q++){for(var p=0,v=u[q].link.length;p<v;p++){if(u[q].link[p].rel=="alternate"){s=u[q].link[p].href;break}}t=("content" in u[q])?u[q].content.$t:("summary" in u[q])?u[q].summary.$t:"";var r=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi;newdowm=a("<div></div>").append(t.replace(r,""));imgb=newdowm.find("img");if("media$thumbnail" in u[q]){w=u[q].media$thumbnail.url.replace(/\/s[0-9]+\-c/g,"/s"+d.options.ImageSize);if(u[q].media$thumbnail.url.indexOf("img.youtube.com")!=-1){w=u[q].media$thumbnail.url.replace("default","0")}}else{if(imgb.length!=0){w=imgb[0].src}else{w=d.options.pBlank}}t=t.replace(/<\S[^>]*>/g,"");if(t.length>d.options.Summarylength){t=t.substring(0,d.options.Summarylength)+"..."}m=u[q].title.$t;n+='<li><a title="'+m+'" class="feathumb" href="'+s+'"><img class="random" src="'+w+'"/></a><div class="label_text"><div class="inner"><strong class="titlex"><a href="'+s+'">'+m+"</a></strong><p>"+t+"</p></div></div></li>"}d.$el.find("ul.featpost").append(n);d.$el.find(".box_skitter_home.maxxiz-theme").skitter({label:true,numbers:true,auto_play:true,numbers_align:"center",dots:true,preview:true,structure:'<a href="#" class="prev_button"><span>السابق</span></a><a href="#" class="next_button"><span>التالي</span></a><span class="info_slide"></span><div class="container_skitter"><div class="image"><a href=""><img class="image_main" /></a><div class="label_skitter"></div></div></div>',width_label:"90%",opacity_elements:1});var h=function(){d.$el.find(".container_skitter").removeAttr("style")};a(window).resize(h);d.$el.removeClass(d.options.loadingClass)};var e=function(i,h){return Math.floor(Math.random()*(h-i+1))+i};if(d.options.RandompostActive===true){a.get((d.options.blogURL===""?window.location.protocol+"//"+window.location.host:d.options.blogURL)+"/feeds/posts/default"+(d.options.tagName===false?"":"/-/"+d.options.tagName)+"?max-results=0&orderby=published&alt=json-in-script",function(h){var i=(d.options.MaxPost>h.feed.openSearch$totalResults.$t)?1:e(1,(h.feed.openSearch$totalResults.$t-d.options.MaxPost));a.get((d.options.blogURL===""?window.location.protocol+"//"+window.location.host:d.options.blogURL)+"/feeds/posts/default"+(d.options.tagName===false?"":"/-/"+d.options.tagName)+"?max-results="+d.options.MaxPost+"&orderby=published&start-index="+i+"&alt=json-in-script",g,"jsonp")},"jsonp")}else{a.get((d.options.blogURL===""?window.location.protocol+"//"+window.location.host:d.options.blogURL)+"/feeds/posts/default"+(d.options.tagName===false?"":"/-/"+d.options.tagName)+"?max-results="+d.options.MaxPost+"&orderby=published&alt=json-in-script",g,"jsonp")}};d.init()};a.AutofeaturedPost.defaultOptions={blogURL:"",MaxPost:5,ImageSize:250,Summarylength:100,RandompostActive:true,loadingClass:"loadingxx",pBlank:"http://1.bp.blogspot.com/-htG7vy9vIAA/Tp0KrMUdoWI/AAAAAAAABAU/e7XkFtErqsU/s72-c/grey.gif",tagName:false};a.fn.AutofeaturedPost=function(b){return this.each(function(){(new a.AutofeaturedPost(this,b))})}})(jQuery);


$(document).ready(function() {$('.px99').attr('src', function(i, src) {return src.replace( 's1600', 's250' );});});
$(document).ready(function() {$('.item-thumbnail9').attr('src', function(i, src) {return src.replace( 's72-c', 's32-c' );});});




var numComments=numComments||3,avatarSize=avatarSize||32,characters=characters||50,defaultAvatar=defaultAvatar||"http://www.gravatar.com/avatar/?d=mm",moreLinktext=moreLinktext||" More &raquo;",showAvatar="undefined"===typeof showAvatar?!0:showAvatar,showMorelink="undefined"===typeof showMorelink?!1:showMorelink,roundAvatar="undefined"===typeof roundAvatar?!0:roundAvatar,hideCredits="undefined"===typeof hideCredits?!1:roundAvatar;
function w2b_recent_comments(h){var c;c='<ul class="w2b_recent_comments"><span>\u062a\u0639\u0644\u064a\u0642\u0627\u062a :</span> ';for(var e=0;e<numComments;e++){var f,g,d,b;if(e==h.feed.entry.length)break;c+="<li>";var a=h.feed.entry[e];for(b=0;b<a.link.length;b++)"alternate"==a.link[b].rel&&(f=a.link[b].href);for(b=0;b<a.author.length;b++)g=a.author[b].name.$t,d=a.author[b].gd$image.src;-1!=d.indexOf("/s1600/")?d=d.replace("/s1600/","/s"+avatarSize+"-c/"):-1!=d.indexOf("/s220/")?d=d.replace("/s220/",
"/s"+avatarSize+"-c/"):-1!=d.indexOf("/s512-c/")&&0!=d.indexOf("http:")&&(d="http:"+d.replace("/s512-c/","/s"+avatarSize+"-c/"));1==showAvatar&&(b=1==roundAvatar?"avatarRound":"",c+='<div class="avatarImage '+b+'"><img class="'+b+'" src="'+d+'" alt="'+g+'" width="'+avatarSize+'" height="'+avatarSize+'"/></div>');c+='<a href="'+f+'">'+g+"</a>";a=a.content.$t.replace(/(<([^>]+)>)/ig,"");""!=a&&a.length>characters&&(a=a.substring(0,characters),a+="&hellip;",1==showMorelink&&(a+='<a href="'+f+'">'+moreLinktext+
"</a>"));c+="<span>"+a+"</span>";c+="</li>"}document.write(c+"</ul>")};


var Alldefaultconfig = {
    monthName: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"] // Define Month Name
};
(function(b){var a=(function(){var p={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",menuArrowClass:"sf-arrows"},f=/iPhone|iPad|iPod/i.test(navigator.userAgent),k=(function(){var c=document.documentElement.style;return("behavior" in c&&"fill" in c&&/iemobile/i.test(navigator.userAgent))})(),d=(function(){if(f){b(window).load(function(){b("body").children().on("click",b.noop)})}})(),m=function(s,t){var c=p.menuClass;if(t.cssArrows){c+=" "+p.menuArrowClass}s.toggleClass(c)},r=function(c,s){return c.find("li."+s.pathClass).slice(0,s.pathLevels).addClass(s.hoverClass+" "+p.bcClass).filter(function(){return(b(this).children("ul").hide().show().length)}).removeClass(s.pathClass)},n=function(c){c.children("a").toggleClass(p.anchorClass)},g=function(c){var s=c.css("ms-touch-action");s=(s==="pan-y")?"auto":"pan-y";c.css("ms-touch-action",s)},j=function(t,u){var c="li:has(ul)";if(b.fn.hoverIntent&&!u.disableHI){t.hoverIntent(l,h,c)}else{t.on("mouseenter.superfish",c,l).on("mouseleave.superfish",c,h)}var s="MSPointerDown.superfish";if(!f){s+=" touchend.superfish"}if(k){s+=" mousedown.superfish"}t.on("focusin.superfish","li",l).on("focusout.superfish","li",h).on(s,"a",i)},i=function(t){var s=b(this),c=s.siblings("ul");if(c.length>0&&c.is(":hidden")){s.one("click.superfish",false);if(t.type==="MSPointerDown"){s.trigger("focus")}else{b.proxy(l,s.parent("li"))()}}},l=function(){var c=b(this),s=o(c);clearTimeout(s.sfTimer);c.siblings().superfish("hide").end().superfish("show")},h=function(){var c=b(this),s=o(c);if(f){b.proxy(q,c,s)()}else{clearTimeout(s.sfTimer);s.sfTimer=setTimeout(b.proxy(q,c,s),s.delay)}},q=function(c){c.retainPath=(b.inArray(this[0],c.$path)>-1);this.superfish("hide");if(!this.parents("."+c.hoverClass).length){c.onIdle.call(e(this));if(c.$path.length){b.proxy(l,c.$path)()}}},e=function(c){return c.closest("."+p.menuClass)},o=function(c){return e(c).data("sf-options")};return{hide:function(s){if(this.length){var v=this,w=o(v);if(!w){return this}var t=(w.retainPath===true)?w.$path:"",c=v.find("li."+w.hoverClass).add(this).not(t).removeClass(w.hoverClass).children("ul"),u=w.speedOut;if(s){c.show();u=0}w.retainPath=false;w.onBeforeHide.call(c);c.stop(true,true).animate(w.animationOut,u,function(){var x=b(this);w.onHide.call(x)})}return this},show:function(){var t=o(this);if(!t){return this}var s=this.addClass(t.hoverClass),c=s.children("ul");t.onBeforeShow.call(c);c.stop(true,true).animate(t.animation,t.speed,function(){t.onShow.call(c)});return this},destroy:function(){return this.each(function(){var s=b(this),t=s.data("sf-options"),c=s.find("li:has(ul)");if(!t){return false}clearTimeout(t.sfTimer);m(s,t);n(c);g(s);s.off(".superfish").off(".hoverIntent");c.children("ul").attr("style",function(u,v){return v.replace(/display[^;]+;?/g,"")});t.$path.removeClass(t.hoverClass+" "+p.bcClass).addClass(t.pathClass);s.find("."+t.hoverClass).removeClass(t.hoverClass);t.onDestroy.call(s);s.removeData("sf-options")})},init:function(c){return this.each(function(){var t=b(this);if(t.data("sf-options")){return false}var u=b.extend({},b.fn.superfish.defaults,c),s=t.find("li:has(ul)");u.$path=r(t,u);t.data("sf-options",u);m(t,u);n(s);g(t);j(t,u);s.not("."+p.bcClass).superfish("hide",true);u.onInit.call(this)})}}})();b.fn.superfish=function(d,c){if(a[d]){return a[d].apply(this,Array.prototype.slice.call(arguments,1))}else{if(typeof d==="object"||!d){return a.init.apply(this,arguments)}else{return b.error("Method "+d+" does not exist on jQuery.fn.superfish")}}};b.fn.superfish.defaults={hoverClass:"sfHover",pathClass:"overrideThisToUse",pathLevels:1,delay:800,animation:{opacity:"show"},animationOut:{opacity:"hide"},speed:"normal",speedOut:"fast",cssArrows:true,disableHI:false,onInit:b.noop,onBeforeShow:b.noop,onShow:b.noop,onBeforeHide:b.noop,onHide:b.noop,onIdle:b.noop,onDestroy:b.noop};b.fn.extend({hideSuperfishUl:a.hide,showSuperfishUl:a.show})})(jQuery);
// JQUERY NEWS TICKER by Rhodimus
// http://github.com/rhodimus/jQuery-News-Ticker
(function(a){a.fn.ticker=function(c){var e=a.extend({},a.fn.ticker.defaults,c);if(a(this).length==0){if(window.console&&window.console.log){window.console.log("Element does not exist in DOM!")}else{alert("Element does not exist in DOM!")}return false}var b="#"+a(this).attr("id");var d=a(this).get(0).tagName;return this.each(function(){var g=o();var i={position:0,time:0,distance:0,newsArr:{},play:true,paused:false,contentLoaded:false,dom:{contentID:"#ticker-content-"+g,titleID:"#ticker-title-"+g,titleElem:"#ticker-title-"+g+" SPAN",tickerID:"#ticker-"+g,wrapperID:"#ticker-wrapper-"+g,revealID:"#ticker-swipe-"+g,revealElem:"#ticker-swipe-"+g+" SPAN",controlsID:"#ticker-controls-"+g,prevID:"#prev-"+g,nextID:"#next-"+g,playPauseID:"#play-pause-"+g}};if(d!="UL"&&d!="OL"&&e.htmlFeed===true){q("Cannot use <"+d.toLowerCase()+"> type of element for this plugin - must of type <ul> or <ol>");return false}e.direction=="ltr"?e.direction="left":e.direction="right";f();function l(u){var t=0,s;for(s in u){if(u.hasOwnProperty(s)){t++}}return t}function o(){var s=new Date;return s.getTime()}function q(s){if(e.debugMode){if(window.console&&window.console.log){window.console.log(s)}else{alert(s)}}}function f(){m();a(b).wrap('<div id="'+i.dom.wrapperID.replace("#","")+'"></div>');a(i.dom.wrapperID).children().remove();a(i.dom.wrapperID).append('<div id="'+i.dom.tickerID.replace("#","")+'" class="ticker"><div id="'+i.dom.titleID.replace("#","")+'" class="ticker-title"><span><!-- --></span></div><p id="'+i.dom.contentID.replace("#","")+'" class="ticker-content"></p><div id="'+i.dom.revealID.replace("#","")+'" class="ticker-swipe"><span><!-- --></span></div></div>');a(i.dom.wrapperID).removeClass("no-js").addClass("ticker-wrapper has-js "+e.direction);a(i.dom.tickerElem+","+i.dom.contentID).hide();if(e.controls){a(i.dom.controlsID).live("click mouseover mousedown mouseout mouseup",function(t){var s=t.target.id;if(t.type=="click"){switch(s){case i.dom.prevID.replace("#",""):i.paused=true;a(i.dom.playPauseID).addClass("paused");n("prev");break;case i.dom.nextID.replace("#",""):i.paused=true;a(i.dom.playPauseID).addClass("paused");n("next");break;case i.dom.playPauseID.replace("#",""):if(i.play==true){i.paused=true;a(i.dom.playPauseID).addClass("paused");j()}else{i.paused=false;a(i.dom.playPauseID).removeClass("paused");p()}break}}else{if(t.type=="mouseover"&&a("#"+s).hasClass("controls")){a("#"+s).addClass("over")}else{if(t.type=="mousedown"&&a("#"+s).hasClass("controls")){a("#"+s).addClass("down")}else{if(t.type=="mouseup"&&a("#"+s).hasClass("controls")){a("#"+s).removeClass("down")}else{if(t.type=="mouseout"&&a("#"+s).hasClass("controls")){a("#"+s).removeClass("over")}}}}}});a(i.dom.wrapperID).append('<ul id="'+i.dom.controlsID.replace("#","")+'" class="ticker-controls"><li id="'+i.dom.playPauseID.replace("#","")+'" class="jnt-play-pause controls"><a href=""><!-- --></a></li><li id="'+i.dom.prevID.replace("#","")+'" class="jnt-prev controls"><a href=""><!-- --></a></li><li id="'+i.dom.nextID.replace("#","")+'" class="jnt-next controls"><a href=""><!-- --></a></li></ul>')}if(e.displayType!="fade"){a(i.dom.contentID).mouseover(function(){if(i.paused==false){j()}}).mouseout(function(){if(i.paused==false){p()}})}if(!e.ajaxFeed){r()}}function m(){if(i.contentLoaded==false){if(e.ajaxFeed){if(e.feedType=="xml"){a.ajax({url:e.feedUrl,cache:false,dataType:e.feedType,async:true,success:function(w){count=0;for(var t=0;t<w.childNodes.length;t++){if(w.childNodes[t].nodeName=="rss"){xmlContent=w.childNodes[t]}}for(var u=0;u<xmlContent.childNodes.length;u++){if(xmlContent.childNodes[u].nodeName=="channel"){xmlChannel=xmlContent.childNodes[u]}}for(var s=0;s<xmlChannel.childNodes.length;s++){if(xmlChannel.childNodes[s].nodeName=="item"){xmlItems=xmlChannel.childNodes[s];var z,v=false;for(var A=0;A<xmlItems.childNodes.length;A++){if(xmlItems.childNodes[A].nodeName=="title"){z=xmlItems.childNodes[A].lastChild.nodeValue}else{if(xmlItems.childNodes[A].nodeName=="link"){v=xmlItems.childNodes[A].lastChild.nodeValue}}if((z!==false&&z!="")&&v!==false){i.newsArr["item-"+count]={type:e.titleText,content:'<a href="'+v+'">'+z+"</a>"};count++;z=false;v=false}}}}if(l(i.newsArr<1)){q("Couldn't find any content from the XML feed for the ticker to use!");return false}i.contentLoaded=true;r()}})}else{q("Code Me!")}}else{if(e.htmlFeed){if(a(b+" LI").length>0){a(b+" LI").each(function(s){i.newsArr["item-"+s]={type:e.titleText,content:a(this).html()}})}else{q("Couldn't find HTML any content for the ticker to use!");return false}}else{q("The ticker is set to not use any types of content! Check the settings for the ticker.");return false}}}}function r(){i.contentLoaded=true;a(i.dom.titleElem).html(i.newsArr["item-"+i.position].type);a(i.dom.contentID).html(i.newsArr["item-"+i.position].content);if(i.position==(l(i.newsArr)-1)){i.position=0}else{i.position++}distance=a(i.dom.contentID).width();time=distance/e.speed;h()}function h(){a(i.dom.contentID).css("opacity","1");if(i.play){var s=a(i.dom.titleID).width()+20;a(i.dom.revealID).css(e.direction,s+"px");if(e.displayType=="fade"){a(i.dom.revealID).hide(0,function(){a(i.dom.contentID).css(e.direction,s+"px").fadeIn(e.fadeInSpeed,k)})}else{if(e.displayType=="scroll"){}else{a(i.dom.revealElem).show(0,function(){a(i.dom.contentID).css(e.direction,s+"px").show();animationAction=e.direction=="left"?{marginLeft:distance+"px"}:{marginRight:distance+"px"};a(i.dom.revealID).css("margin-"+e.direction,"0px").delay(20).animate(animationAction,time,"linear",k)})}}}else{return false}}function k(){if(i.play){a(i.dom.contentID).delay(e.pauseOnItems).fadeOut(e.fadeOutSpeed);if(e.displayType=="fade"){a(i.dom.contentID).fadeOut(e.fadeOutSpeed,function(){a(i.dom.wrapperID).find(i.dom.revealElem+","+i.dom.contentID).hide().end().find(i.dom.tickerID+","+i.dom.revealID).show().end().find(i.dom.tickerID+","+i.dom.revealID).removeAttr("style");r()})}else{a(i.dom.revealID).hide(0,function(){a(i.dom.contentID).fadeOut(e.fadeOutSpeed,function(){a(i.dom.wrapperID).find(i.dom.revealElem+","+i.dom.contentID).hide().end().find(i.dom.tickerID+","+i.dom.revealID).show().end().find(i.dom.tickerID+","+i.dom.revealID).removeAttr("style");r()})})}}else{a(i.dom.revealElem).hide()}}function j(){i.play=false;a(i.dom.tickerID+","+i.dom.revealID+","+i.dom.titleID+","+i.dom.titleElem+","+i.dom.revealElem+","+i.dom.contentID).stop(true,true);a(i.dom.revealID+","+i.dom.revealElem).hide();a(i.dom.wrapperID).find(i.dom.titleID+","+i.dom.titleElem).show().end().find(i.dom.contentID).show()}function p(){i.play=true;i.paused=false;k()}function n(s){j();switch(s){case"prev":if(i.position==0){i.position=l(i.newsArr)-2}else{if(i.position==1){i.position=l(i.newsArr)-1}else{i.position=i.position-2}}a(i.dom.titleElem).html(i.newsArr["item-"+i.position].type);a(i.dom.contentID).html(i.newsArr["item-"+i.position].content);break;case"next":a(i.dom.titleElem).html(i.newsArr["item-"+i.position].type);a(i.dom.contentID).html(i.newsArr["item-"+i.position].content);break}if(i.position==(l(i.newsArr)-1)){i.position=0}else{i.position++}}})};a.fn.ticker.defaults={speed:0.1,ajaxFeed:false,feedUrl:"",feedType:"xml",displayType:"reveal",htmlFeed:true,debugMode:true,controls:true,titleText:"See More News:",direction:"rtl",pauseOnItems:3000,fadeInSpeed:600,fadeOutSpeed:300}})(jQuery);

//Navigation Call by MKR
function menunav(c){c("#mobilenav").click(function(){c("#menunav").slideToggle();c(this).toggleClass("active");return false});c("#topmobilenav").click(function(){c("#topmenunav").slideToggle();c(this).toggleClass("active");return false});c(".sf-menu ul").each(function(){var e=c(this).parent("li");e.append("<i></i>")});var b=function(){var e=c(window).width();if(e>979){c("#menunav").css("display","block");c("#menunav").superfish({animation:{height:"show"},animationOut:{height:"hide"}});c(".sf-menu i").css("display","none")}else{if(e<=979&&c("#mobilenav").attr("class")==="active"){c("#menunav").css("display","block");c("#menunav").superfish("destroy");c(".sf-menu i").css("display","block")}else{if(e<=979&&c("#mobilenav").attr("class")!=="active"){c("#menunav").css("display","none");c("#menunav").superfish("destroy");c(".sf-menu i").css("display","block")}}}};var a=function(){var e=c(window).width();if(e>979){c("#topmenunav").css("display","block");c("#topmenunav").superfish({animation:{height:"show"},animationOut:{height:"hide"}});c(".sf-menu i").css("display","none")}else{if(e<=979&&c("#topmobilenav").attr("class")==="active"){c("#topmenunav").css("display","block");c("#topmenunav").superfish("destroy");c(".sf-menu i").css("display","block")}else{if(e<=979&&c("#topmobilenav").attr("class")!=="active"){c("#topmenunav").css("display","none");c("#topmenunav").superfish("destroy");c(".sf-menu i").css("display","block")}}}};b();a();c(window).resize(b);c(window).resize(a);c(".sf-menu i").click(function(){var e=c(this).parent("li");var f=e.children("ul");f.slideToggle();c(this).toggleClass("active");return false});var d=window.location.href;c("#menunav a, #topmenunav a").each(function(){if(this.href===d){var e=c(this).parents("li").children("a").addClass("current")}})};

//Ajax JSON NewsTicker by MKR   
function NewsTicker(m){(function(e){var a={blogURL:"",MaxPost:10,Speed:0.1,titleText:"See More News:",displayType:"reveal",Container:"#newsticker",tagName:!1,MonthNames:Alldefaultconfig.monthName},a=e.extend({},a,m);e(a.Container).addClass("loading");e.get((""===a.blogURL?window.location.protocol+"//"+window.location.host:a.blogURL)+"/feeds/posts/summary"+(!1===a.tagName?"":"/-/"+a.tagName)+"?max-results="+a.MaxPost+"&orderby=published&alt=json-in-script",function(b){var p,f,k,l,g,h,c,q,n="";b=b.feed.entry;
if(void 0!==b){for(var d=0,m=b.length;d<m;d++){f=0;for(k=b[d].link.length;f<k;f++)"alternate"==b[d].link[f].rel&&(p=b[d].link[f].href);f=b[d].title.$t;g=b[d].published.$t.substring(0,10);k=g.substring(0,4);l=g.substring(5,7);g=g.substring(8,10);l=a.MonthNames[parseInt(l,10)-1];h=b[d].published.$t.substring(11,16);c=h.substring(0,2);h=h.substring(2,5);q=12>c?"AM":"PM";0===c&&(c=12);12<c&&(c-=12);n+='<li class="news-item"><span title="'+l+" "+g+", "+k+'" class="date">'+c+""+h+" "+q+'</span> <a class="title" href="'+
p+'">'+f+"</a></li>"}e(a.Container).html('<ul class="js-hidden" id="newstick">'+n+"</ul>").removeClass("loading");e("#newstick").ticker({speed:a.Speed,direction:e("#outer-wrapper").attr("class"),titleText:a.titleText,displayType:a.displayType})}else e(a.Container).html("<span>No result!</span>").removeClass("loading")},"jsonp")})(jQuery)};


function replaceText(){if(!document.getElementById){return}bodyText=document.getElementById("comments");theText=bodyText.innerHTML;theText=theText.replace(/\[img\].*?'.*?\[\/img\]/gi,"");theText=theText.replace(/\[y\].*?'.*?\[\/y\]/gi,"");theText=theText.replace(/ت1/gi,"<span class='cnmu-smilet' style='background-position: 0 0;' title='ت1'>ت1</span>");theText=theText.replace(/ت2/gi,"<span class='cnmu-smilet' style='background-position: 0 -30px;' title='ت2'>ت2</span>");theText=theText.replace(/ت3/gi,"<span class='cnmu-smilet' style='background-position: 0 -60px;' title='ت3'>ت3</span>");theText=theText.replace(/ت4/gi,"<span class='cnmu-smilet' style='background-position: 0 -90px;' title='ت4'>ت4</span>");theText=theText.replace(/ت5/gi,"<span class='cnmu-smilet' style='background-position: 0 -120px;' title='ت5'>ت5</span>");theText=theText.replace(/ت6/gi,"<span class='cnmu-smilet' style='background-position: 0 -150px;' title='ت6'>ت6</span>");theText=theText.replace(/ت7/gi,"<span class='cnmu-smilet' style='background-position: 0 -180px;' title='ت7'>ت7</span>");theText=theText.replace(/ت8/gi,"<span class='cnmu-smilet' style='background-position: 0 -210px;' title='ت8'>ت8</span>");theText=theText.replace(/ت9/gi,"<span class='cnmu-smilet' style='background-position: 0 -240px;' title='ت9'>ت9</span>");theText=theText.replace(/ج1/gi,"<span class='cnmu-smilet' style='background-position: 0 -270px;' title='ج1'>ج1</span>");theText=theText.replace(/ج2/gi,"<span class='cnmu-smilet' style='background-position: 0 -300px;' title='ج2'>ج2</span>");theText=theText.replace(/ج3/gi,"<span class='cnmu-smilet' style='background-position: 0 -330px;' title='ج3'>ج3</span>");theText=theText.replace(/ج4/gi,"<span class='cnmu-smilet' style='background-position: 0 -360px;' title='ج4'>ج4</span>");theText=theText.replace(/ج5/gi,"<span class='cnmu-smilet' style='background-position: 0 -390px;' title='ج5'>ج5</span>");theText=theText.replace(/ج6/gi,"<span class='cnmu-smilet' style='background-position: 0 -420px;' title='ج6'>ج6</span>");theText=theText.replace(/ج7/gi,"<span class='cnmu-smilet' style='background-position: 0 -450px;' title='ج7'>ج7</span>");theText=theText.replace(/ج8/gi,"<span class='cnmu-smilet' style='background-position: 0 -480px;' title='ج8'>ج8</span>");theText=theText.replace(/ج9/gi,"<span class='cnmu-smilet' style='background-position: 0 -510px;' title='ج9'>ج9</span>");theText=theText.replace(/د1/gi,"<span class='cnmu-smilet' style='background-position: 0 -540px;' title='د1'>د1</span>");theText=theText.replace(/د2/gi,"<span class='cnmu-smilet' style='background-position: 0 -570px;' title='د2'>د2</span>");bodyText.innerHTML=theText}replaceText();



(function($){var newerLink=$('a.newer-link');var olderLink=$('a.older-link');$.get(newerLink.attr('href'),function(data){newerLink.html('<strong>التالي</strong> <span>'+$(data).find('.post h2.post-title').text()+'</span>')},"html");$.get(olderLink.attr('href'),function(data2){olderLink.html('<strong>السابق</strong> <span>'+$(data2).find('.post h2.post-title').text()+'</span>')},"html")})(jQuery);


$(document).ready(function(){
 // Increase Font Size
 $(".increaseFont").click(function(){
  var currentFontSize = $('.post-body').css('font-size');
 var currentFontSizeNum = parseFloat(currentFontSize, 10);
   var newFontSize = currentFontSizeNum*1.2;
 $('.post-body').css('font-size', newFontSize);
 return false;
 });
 // Decrease Font Size
 $(".decreaseFont").click(function(){
  var currentFontSize = $('.post-body').css('font-size');
 var currentFontSizeNum = parseFloat(currentFontSize, 10);
   var newFontSize = currentFontSizeNum*0.8;
 $('.post-body').css('font-size', newFontSize);
 return false;
 });
});

var menu = $('#ff-0s'), pos = menu.offset(); $(window).scroll(function(){
     if($(this).scrollTop() > pos.top+menu.height() && menu.hasClass('pfButton')){
         menu.fadeOut('fast', function(){
             $(this).removeClass('pfButton').addClass('menufixed').fadeIn('fast');
         });     
} 
else if($(this).scrollTop() <= pos.top && menu.hasClass('menufixed')){
         menu.fadeOut('fast', function(){
             $(this).removeClass('menufixed').addClass('pfButton').fadeIn('fast');
         });
     } });

(function($){$.fn.lazyload=function(options){var settings={threshold:0,failurelimit:0,event:"scroll",effect:"show",container:window};if(options){$.extend(settings,options);}
var elements=this;if("scroll"==settings.event){$(settings.container).bind("scroll",function(event){var counter=0;elements.each(function(){if($.abovethetop(this,settings)||$.leftofbegin(this,settings)){}else if(!$.belowthefold(this,settings)&&!$.rightoffold(this,settings)){$(this).trigger("appear");}else{if(counter++>settings.failurelimit){return false;}}});var temp=$.grep(elements,function(element){return!element.loaded;});elements=$(temp);});}
this.each(function(){var self=this;if(undefined==$(self).attr("original")){$(self).attr("original",$(self).attr("src"));}
if("scroll"!=settings.event||undefined==$(self).attr("src")||settings.placeholder==$(self).attr("src")||($.abovethetop(self,settings)||$.leftofbegin(self,settings)||$.belowthefold(self,settings)||$.rightoffold(self,settings))){if(settings.placeholder){$(self).attr("src",settings.placeholder);}else{$(self).removeAttr("src");}
self.loaded=false;}else{self.loaded=true;}
$(self).one("appear",function(){if(!this.loaded){$("<img />").bind("load",function(){$(self).hide().attr("src",$(self).attr("original"))
[settings.effect](settings.effectspeed);self.loaded=true;}).attr("src",$(self).attr("original"));};});if("scroll"!=settings.event){$(self).bind(settings.event,function(event){if(!self.loaded){$(self).trigger("appear");}});}});$(settings.container).trigger(settings.event);return this;};$.belowthefold=function(element,settings){if(settings.container===undefined||settings.container===window){var fold=$(window).height()+$(window).scrollTop();}else{var fold=$(settings.container).offset().top+$(settings.container).height();}
return fold<=$(element).offset().top-settings.threshold;};$.rightoffold=function(element,settings){if(settings.container===undefined||settings.container===window){var fold=$(window).width()+$(window).scrollLeft();}else{var fold=$(settings.container).offset().left+$(settings.container).width();}
return fold<=$(element).offset().left-settings.threshold;};$.abovethetop=function(element,settings){if(settings.container===undefined||settings.container===window){var fold=$(window).scrollTop();}else{var fold=$(settings.container).offset().top;}
return fold>=$(element).offset().top+settings.threshold+$(element).height();};$.leftofbegin=function(element,settings){if(settings.container===undefined||settings.container===window){var fold=$(window).scrollLeft();}else{var fold=$(settings.container).offset().left;}
return fold>=$(element).offset().left+settings.threshold+$(element).width();};$.extend($.expr[':'],{"below-the-fold":"$.belowthefold(a, {threshold : 0, container: window})","above-the-fold":"!$.belowthefold(a, {threshold : 0, container: window})","right-of-fold":"$.rightoffold(a, {threshold : 0, container: window})","left-of-fold":"!$.rightoffold(a, {threshold : 0, container: window})"});})(jQuery);
